Skip to content

Commit fe430ff

Browse files
committed
FIX: run without the python keyword
1 parent 8a81c22 commit fe430ff

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

mprof

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,11 @@ def run_action():
219219

220220
# .. TODO: more than one script as argument ? ..
221221
if args[0].endswith('.py') and not options.nopython:
222-
if options.multiprocess and not args[0].startswith("python"):
222+
if not args[0].startswith("python"):
223+
args.insert(0, "python")
224+
if options.multiprocess:
223225
# in multiprocessing mode you want to spawn a separate
224226
# python process
225-
args.insert(0, "python")
226227
options.python = False
227228
if options.python:
228229
print("running as a Python program...")

0 commit comments

Comments
 (0)