argv[0] manipulation

P_spam_ at draigBrady.com P_spam_ at draigBrady.com
Wed Dec 11 08:22:45 EST 2002


Mike Meyer wrote:
> Well, it could make other people's handling of arguments more painfull
> and/or ugly, depending.

Can you think of any examples? A prepended './' should have no
logical effect at least. For e.g. to get the program name you
needed to do os.path.split() anyway, so this will have no effect?

> Is there some reason you don't want to keep your curernt arrangement
> and just type "python ./myscript" to get debugging, and "python
> myscript" to get it without debugging?

Because I'll forget but more importantly
I want this transparent to 3rd parties.

Pádraig.




More information about the Python-list mailing list