Re: [Python-Dev] Set program name through exec -a or environment variable

2017-03-18 Thread Serhiy Storchaka
On 18.03.17 15:15, Freddy Rietdijk wrote: I would like to know if you're open to supporting `exec -a` or an environment variable for setting `argv[0]`, and have some pointers as to where that should be implemented. On Nixpkgs we typically use wrappers to set environment variables like PATH or PY

Re: [Python-Dev] Set program name through exec -a or environment variable

2017-03-18 Thread tritium-list
https://pypi.python.org/pypi/setproctitle From: Python-Dev [mailto:python-dev-bounces+tritium-list=sdamon@python.org] On Behalf Of Freddy Rietdijk Sent: Saturday, March 18, 2017 9:15 AM To: Python-Dev Subject: [Python-Dev] Set program name through exec -a or environment variable

Re: [Python-Dev] Set program name through exec -a or environment variable

2017-03-18 Thread Greg Ewing
Oleg Broytman wrote: On Sat, Mar 18, 2017 at 10:27:58AM -0500, Ryan Gonzalez 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 shoul

Re: [Python-Dev] Set program name through exec -a or environment variable

2017-03-18 Thread Oleg Broytman
On Sat, Mar 18, 2017 at 10:27:58AM -0500, Ryan Gonzalez 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? > -- > Ryan () > Yoko Shimomura > ry

Re: [Python-Dev] Set program name through exec -a or environment variable

2017-03-18 Thread Ryan Gonzalez
exec -a would seem to end up setting argv[0] on the CPython interpreter itself, which I don't think is the desired effect... -- Ryan (ライアン) Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else http://refi64.com On Mar 18, 2017 10:11 AM, "Freddy Rietdijk" wrote: > Hi, > > I

[Python-Dev] Set program name through exec -a or environment variable

2017-03-18 Thread Freddy Rietdijk
Hi, I would like to know if you're open to supporting `exec -a` or an environment variable for setting `argv[0]`, and have some pointers as to where that should be implemented. On Nixpkgs we typically use wrappers to set environment variables like PATH or PYTHONPATH for individual programs. Consi