diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-01-15 20:15:03 -0500 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2023-02-19 02:55:57 +0530 |
commit | 96d70596231ae1e00912149d58afedfa5b3520e6 (patch) | |
tree | bb8d09eb1bbdcc1f094cf82daf61cfc6d26d4d84 /docs/refman/model.py | |
parent | 3b5a89b2d85f44f6b93f932ab912cde5a6b4b3b3 (diff) | |
download | meson-96d70596231ae1e00912149d58afedfa5b3520e6.zip meson-96d70596231ae1e00912149d58afedfa5b3520e6.tar.gz meson-96d70596231ae1e00912149d58afedfa5b3520e6.tar.bz2 |
runpython: make it work for -c as well
In commit 4e4f97edb3d475273108b203bc02b04bd6840b06 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.
Diffstat (limited to 'docs/refman/model.py')
0 files changed, 0 insertions, 0 deletions