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

Alistair Thomas astavale at yahoo.co.uk
Thu Jun 27 13:48:26 EDT 2002


In article <c07d0edc.0206270432.faf1fd3 at posting.google.com>, "Guy"
<guy at lightwork.co.uk> wrote:

> How do I get the current path of the script I am running, on the mac osx
> and the linux box ? 

Does 

sys.path[0]

make any difference?

--
Alistair



More information about the Python-list mailing list