We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a81c22 commit fe430ffCopy full SHA for fe430ff
1 file changed
mprof
@@ -219,10 +219,11 @@ def run_action():
219
220
# .. TODO: more than one script as argument ? ..
221
if args[0].endswith('.py') and not options.nopython:
222
- if options.multiprocess and not args[0].startswith("python"):
+ if not args[0].startswith("python"):
223
+ args.insert(0, "python")
224
+ if options.multiprocess:
225
# in multiprocessing mode you want to spawn a separate
226
# python process
- args.insert(0, "python")
227
options.python = False
228
if options.python:
229
print("running as a Python program...")
0 commit comments