Oleg Broytman wrote:
On Sat, Mar 18, 2017 at 10:27:58AM -0500, Ryan Gonzalez <rym...@gmail.com>
wrote:
exec -a would seem to end up setting argv[0] on the CPython interpreter
itself, which I don't think is the desired effect...
That's exactly what OP asked -- how to change that?
Maybe python itself should have an -a option, so that
python -a blarg foo.py
would run foo.py with sys.argv[0] == 'blarg'.
--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com