Skip to content

Commit 33ba751

Browse files
committed
Fix build.py
1 parent be46962 commit 33ba751

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/build.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
pass
7777

7878
# Command line args variables
79+
SYS_ARGV_ORIGINAL = None
7980
VERSION = ""
8081
NO_RUN_EXAMPLES = False
8182
DEBUG_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

0 commit comments

Comments
 (0)