Preload libs only in debug

This commit is contained in:
Oleksii Shevchuk 2018-03-12 17:11:22 +02:00
parent 7d2fb5856f
commit 4f040d4c68
1 changed files with 4 additions and 3 deletions

View File

@ -64,9 +64,10 @@ if __name__=="__main__":
# We are interested to consume embedded modules
# This will help to preload some
preload = None
with open(os.path.join('..','additional_imports.py')) as f:
preload = f.read()
preload = ''
if args.debug:
with open(os.path.join('..','additional_imports.py')) as f:
preload = f.read()
pupyimporter = pupycompile(pupyimporter, raw=True, debug=args.debug)