Get EXE (made with py2exe) path directory name

Serge Orlov Serge.Orlov at gmail.com
Mon Jun 5 21:57:18 EDT 2006


Andrei B wrote:
> I need to get absolute path name of a file that's in the same dir as
> the exe, however the Current Working Directory is changed to somthing
> else.
>

Use sys.path[0]




More information about the Python-list mailing list