[PATCH] sys.modify_argv()
Ignacio Vazquez-Abrams
ignacio at openservices.net
Sat Aug 25 02:05:23 EDT 2001
On Fri, 24 Aug 2001, John Roth wrote:
> "Dave Cinege" <dcinege at psychosis.com> wrote in message
> news:mailman.998706141.30883.python-list at python.org...
> > keywords: modify argv change process listing argv[0] ps output
> >
> > This patch adds a new feature to the sys module, modify_argv().
> > As you might have guessed this allows one to change to absolute
> > argv values of the python process itself. (It is of great wonder
> > to me why this functionality is not already available...)
>
> Why do you want to do this? Aren't there enough ways of
> confusing yourself without adding a method of lying to yourself
> about your input parameters?
>
> John Roth
It's not so much for lying to yourself as it is about lying to ps. Seeing
'/usr/bin/python MyApp.py' is more ugly than just seeing 'MyApp.py'. Plus,
it's a lot easier to ps aux|grep or killall with the shorter name.
--
Ignacio Vazquez-Abrams <ignacio at openservices.net>
More information about the Python-list
mailing list