Commit da0cb12b authored by Aurélien Dunand's avatar Aurélien Dunand Committed by Sébastien Luttringer
Browse files

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)