Skip to content

Commit 6b73350

Browse files
committed
mprof: use sys.executable instead of system-wide python
Thanks @acs @superbobry!
1 parent 7675442 commit 6b73350

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
@@ -220,7 +220,7 @@ def run_action():
220220
# .. TODO: more than one script as argument ? ..
221221
if args[0].endswith('.py') and not options.nopython:
222222
if not args[0].startswith("python"):
223-
args.insert(0, "python")
223+
args.insert(0, sys.executable)
224224
if options.multiprocess:
225225
# in multiprocessing mode you want to spawn a separate
226226
# python process

0 commit comments

Comments
 (0)