Getting the current directory path and the path where python script is saved
gialloporpora
gialloporpora at gmail.com
Tue Dec 13 11:04:55 EST 2011
More information about the Python-list mailing list
Tue Dec 13 11:04:55 EST 2011
- Previous message (by thread): Using methodcaller in a list sort - any examples anywhere?
- Next message (by thread): Getting the current directory path and the path where python script is saved
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dear all, I would like to create a little script to rename my files, I think to use argparse module to create it. I would like to know how to obtain the path where script is executed and the path where the file script is stored. For example, if I save my script in c:\python27 and I put the directory in %path% I can execute it from any folder, I would like to get the two directory path. Thanks Sandro -- *gialloporpora: RT @themitcho: telnet miku.acm.uiuc.edu Do it now. You will not regret it. #nyan /via @beaulebens * - http://bit.ly/u2boVC Sto ascoltando: *Pink Floyd – Echoe Part I * - http://bit.ly/vgIGQe
- Previous message (by thread): Using methodcaller in a list sort - any examples anywhere?
- Next message (by thread): Getting the current directory path and the path where python script is saved
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list