File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 7676 pass
7777
7878# Command line args variables
79+ SYS_ARGV_ORIGINAL = None
7980VERSION = ""
8081NO_RUN_EXAMPLES = False
8182DEBUG_FLAG = False
@@ -135,6 +136,9 @@ def command_line_args():
135136
136137 print ("[build.py] Parse command line arguments" )
137138
139+ global SYS_ARGV_ORIGINAL
140+ SYS_ARGV_ORIGINAL = sys .argv
141+
138142 if "--no-run-examples" in sys .argv :
139143 NO_RUN_EXAMPLES = True
140144 print ("[build.py] Running examples disabled (--no-run-examples)" )
@@ -802,7 +806,7 @@ def build_cefpython_module():
802806 args .append ("\" {python}\" " .format (python = sys .executable ))
803807 args .append (os .path .join (TOOLS_DIR , os .path .basename (__file__ )))
804808 assert __file__ in sys .argv [0 ]
805- args .extend (sys . argv [1 :])
809+ args .extend (SYS_ARGV_ORIGINAL [1 :])
806810 command = " " .join (args )
807811 ret = subprocess .call (command , shell = True )
808812 # Always pass fixed value to sys.exit, read note at
You can’t perform that action at this time.
0 commit comments