aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/python.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-01-15 20:15:03 -0500
committerNirbheek Chauhan <nirbheek@centricular.com>2023-02-06 23:37:55 +0530
commit049f4888ca99c3d6ad1a474becd634dbc07480c5 (patch)
treebb8d09eb1bbdcc1f094cf82daf61cfc6d26d4d84 /mesonbuild/modules/python.py
parentf8f2f16d825c1990b877e1802b680810c7bd907d (diff)
downloadmeson-049f4888ca99c3d6ad1a474becd634dbc07480c5.zip
meson-049f4888ca99c3d6ad1a474becd634dbc07480c5.tar.gz
meson-049f4888ca99c3d6ad1a474becd634dbc07480c5.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 'mesonbuild/modules/python.py')
0 files changed, 0 insertions, 0 deletions