Commit da0cb12b authored by Aurélien Dunand's avatar Aurélien Dunand Committed by Seblu

Keep arrow level in scripts

Since we use a global variable in installsystems.printer to store the arrow
level, we have to keep this module in scripts global context.
parent 7c869369
......@@ -223,6 +223,8 @@ class Image(object):
# sys must be in sys.module to allow loading of modules
sysmodules["sys"] = sys
sysmodules.update(self.modules)
# we need installsystems.printer to conserve arrow level
sysmodules["installsystems.printer"] = installsystems.printer
exec bytecode in global_dict
except Exception as e:
raise ISError(u"Unable to execute script %s" % path, e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment