In <7e456639-9dbb-41ba-ae36-042a034fa...@y32g2000prd.googlegroups.com> AK Eric 
<warp...@sbcglobal.net> writes:


>> > How can a module determine the path of the file that defines it?
>> > (Note that this is, in the general case, different from sys.argv[0].)
>>
>> __file__

>Also:

>import inspect
>print inspect.getsourcefile(lambda:None)

Thank you both!

kynn
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to