[Twisted-Python] A useful value for argv[0]

Brian Warner warner at lothar.com
Sun Feb 16 04:22:50 EST 2003

> >   I think it would be neat if twistd re-executed itself(/python), and
> > specified the name of the tap/tas/tax file it was currently processing as
> > the value for argv[0].

I like it, but the re-exec step is a bit unfortunate. I can imagine problems
(or at least user confusion) when twistd is run under strace, or pdb.

Is there any python way to change argv[0] in place? C apps can muck with it
all they like.. is sys.argv[0] mutable in any useful way?


More information about the Twisted-Python mailing list