In commit 4e4f97edb3
we added support for
runpython to accept `-c 'code to execute'` in addition to just script
files. However, doing so would mangle the sys.argv in the executed code
-- which assumes, as python itself does, that argv is the stuff after
the code to execute. We correctly handled this for script files, but the
original addition of -c support pushed this handling into a script-file
specific block.
pull/11330/head
parent
7b0a590c1b
commit
118396f344
2 changed files with 19 additions and 4 deletions
Loading…
Reference in new issue