Getting module location
limodou
limodou at gmail.com
Thu Jan 5 01:53:40 EST 2006
2006/1/5, Thomas Dybdahl Ahle <thomas at localhost.localdomain>:
> Is it possible for an imported module to find its own location?
you can access __file__(missing for built-in modules) or __path__(used
for a package) attribute to find a module's location.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
More information about the Python-list
mailing list