Getting the current directory path and the path where python script is saved

gialloporpora gialloporpora at gmail.com
Tue Dec 13 16:39:44 EST 2011


Risposta al messaggio di Neil Cerutti :

> Current working directory is available with os.getcwd()
>
> The location of the script you are running may be available as
> os.path.basename(sys.argv[0]).
Thank you very much,  Neil, is exactly what I wanted.
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



More information about the Python-list mailing list