From 61dc5fc6f4cc40b287f380ed270b5dd3da9888f6 Mon Sep 17 00:00:00 2001
From: Oleksii Shevchuk
Date: Tue, 25 Apr 2017 10:47:05 +0300
Subject: [PATCH] sys.flags.optimize can't be set in runtime
---
client/gen_python_bootloader.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/gen_python_bootloader.py b/client/gen_python_bootloader.py
index b521ac4a..4430632b 100644
--- a/client/gen_python_bootloader.py
+++ b/client/gen_python_bootloader.py
@@ -63,7 +63,7 @@ if __name__=="__main__":
remove_stdout if not args.debug else 'print "DEBUG"\n',
'import sys; sys.path=[]; sys.path_hooks=[]; sys.meta_path=[];' + (
'sys.argv = [];' if not args.pass_argv else ''
- ) + 'sys.prefix = ""; sys.flags.optimize=1;\n',
+ ) + 'sys.prefix = "";\n',
pupyload.format('pupyimporter', repr(pupyimporter)),
'import pupyimporter\n'
'pupyimporter.install({})\n'.format(args.debug),