find a .py path

hg hg at nospam.org
Fri Jan 5 04:11:49 EST 2007


hg wrote:

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

oops: os.path.abspath(sys.argv[0]) 

hg




More information about the Python-list mailing list