find a .py path

laurent rahuel toto at titi.de
Fri Jan 5 22:25:20 CET 2007


Hi,

What about :

import os.path
print os.path.abspath(__file__)

hg a écrit :
> Hi,
> 
> Is there an easy way for a script being executed (from anywhere) to know
> where is is ... something in os.path ?
> 
> Thanks,
> 
> hg
> 



More information about the Python-list mailing list