find a .py path

hg hg at nospam.org
Fri Jan 5 04:29:24 EST 2007


Laszlo Nagy wrote:

> hg i'rta:
>> Hi,
>>
>> Is there an easy way for a script being executed (from anywhere) to know
>> where is is ... something in os.path ?
>>   
> __file__
> 
> You can also use os.argv[0] but that is not the same...
> 
> Laszlo
Thanks




More information about the Python-list mailing list