Skip to content

Commit f928701

Browse files
committed
mprof: use sys.executable instead of system-wide python (take 2)
1 parent 4ee7126 commit f928701

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mprof

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def run_action():
228228
if options.python:
229229
print("running as a Python program...")
230230
if not args[0].startswith("python"):
231-
args.insert(0, "python")
231+
args.insert(0, sys.executable)
232232
cmd_line = get_cmd_line(args)
233233
args[1:1] = ("-m", "memory_profiler", "--timestamp",
234234
"-o", mprofile_output)

0 commit comments

Comments
 (0)