Unbound mod variable

This commit is contained in:
DrClaw 2020-02-19 01:12:31 +01:00
parent 16f1bef125
commit fb4b41e2ff

View File

@ -33,10 +33,10 @@ class ConsoleScript(cli2.ConsoleScript):
self.exit_code = 1
return
shlaxfile = mod.__file__
self._doc = inspect.getdoc(mod)
self.shlaxfile = Shlaxfile()
self.shlaxfile.parse(shlaxfile)
self._doc = inspect.getdoc(mod)
if 'main' in self.shlaxfile.actions:
action = self.shlaxfile.actions['main']
for name, child in self.shlaxfile.actions['main'].menu.items():