Skip to content

Commit

Permalink
meson: Fix confusing helper script main() argv usage
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Apr 18, 2024
1 parent 59dbda7 commit fec91ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/barebone/generate-script-runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/compiler/generate-agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fec91ce

Please sign in to comment.