On 10-aug-2006, at 13:42, William Kyngesburye wrote:
>>>
>>> base = os.path.dirname(sys.argv[0])
>>
>> This should probably be os.path.dirname(__file__)
>>
> hmm, none of the reference I have mention this one.  I guess it means
> the same as argv[0] - the path/name of the script?

__file__ is the path where the module was loaded from, which is more  
reliable than sys.argv[0].

Ronald
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to