diff --git a/src/barebone/generate-script-runtime.py b/src/barebone/generate-script-runtime.py index 89ef956bd..f261e1d3d 100755 --- a/src/barebone/generate-script-runtime.py +++ b/src/barebone/generate-script-runtime.py @@ -9,7 +9,7 @@ def main(argv): - input_dir, output_dir, priv_dir = [Path(d).resolve() for d in sys.argv[1:]] + input_dir, output_dir, priv_dir = [Path(d).resolve() for d in argv[1:]] try: generate_runtime(input_dir, output_dir, priv_dir) diff --git a/src/compiler/generate-agent.py b/src/compiler/generate-agent.py index 8f1301005..cbe3cc7e0 100755 --- a/src/compiler/generate-agent.py +++ b/src/compiler/generate-agent.py @@ -21,9 +21,9 @@ def main(argv): - input_dir, output_dir, priv_dir = [Path(d).resolve() for d in sys.argv[1:4]] - host_os_family, host_arch, host_cpu_mode = sys.argv[4:7] - v8_mksnapshot = sys.argv[7] + input_dir, output_dir, priv_dir = [Path(d).resolve() for d in argv[1:4]] + host_os_family, host_arch, host_cpu_mode = argv[4:7] + v8_mksnapshot = argv[7] if v8_mksnapshot != "": v8_mksnapshot = Path(v8_mksnapshot) else: