bugfix
This commit is contained in:
parent
fc6b4df94e
commit
58a79e2602
@ -110,10 +110,7 @@ class Blocks(EventDispatcher):
|
||||
self.register_event_type('on_failed')
|
||||
self.env = GlobalEnv()
|
||||
config = getConfig()
|
||||
if config.script_root:
|
||||
self.script = Script(config.script_root)
|
||||
else:
|
||||
self.script = Script(config.workdir)
|
||||
self.script = Script()
|
||||
|
||||
def set(self, k:str, v):
|
||||
self.env[k] = v
|
||||
|
@ -23,8 +23,10 @@ def set_script_env(n,v):
|
||||
env.update({n:v})
|
||||
|
||||
class Script:
|
||||
def __init__(self, root):
|
||||
self.root = root
|
||||
def __init__(self):
|
||||
config = getConfig()
|
||||
self.root = config.script_root
|
||||
print('Script.root=', self.root)
|
||||
self.env = {}
|
||||
self.handlers = {}
|
||||
self.register('.tmpl', TemplateHandler)
|
||||
|
@ -1 +1 @@
|
||||
__version__ = '0.3.9'
|
||||
__version__ = '0.3.10'
|
||||
|
Loading…
Reference in New Issue
Block a user