Skip to content

Commit

Permalink
Quote arguments to subprocesses (#562)
Browse files Browse the repository at this point in the history
This allows for arguments containing spaces.
  • Loading branch information
sauyon authored Feb 8, 2023
1 parent 7cb2649 commit 5290b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scalene/scalene_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ def __init__(
cmdline += f" --pid={os.getpid()} ---"
payload = """#!/bin/bash
echo $$
%s %s -m scalene %s $@
%s %s -m scalene %s "$@"
""" % (
preface,
sys.executable,
Expand Down

0 comments on commit 5290b62

Please sign in to comment.