sys.argv[0] - Returns path and filename.

Emile van Sebille emile at
Thu Jun 27 11:35:24 EDT 2002

> The only major problem that I have come across at the moment is the
> argv[0], on my win32 box it retruns the path and a filename, on the
> mac osx and the linux only the filename are returned.

What you get is the almost the same on win2k and linux when similarly


[emile at lnxfc emile]$ python
[emile at lnxfc emile]$
[emile at lnxfc emile]$ /home/emile/


Emile van Sebille
emile at


More information about the Python-list mailing list