The folder a script is executed in

aine_canby at yahoo.com aine_canby at yahoo.com
Tue Aug 21 05:10:36 EDT 2007


Hi,

How do I find out what folder a script is in while it is executing?


For example, for the file "C:/folder/script.py" contain the following
two lines of code -

myLocation = GetMyLocation()
print myLocation

>> C:/folder

Thanks,

Aine.




More information about the Python-list mailing list