find the path of a module

vvangelovski at vvangelovski at
Tue Sep 16 22:07:11 CEST 2008

I'd like to know if I can somehow find the path for a module somewhere
in a the package hierarchy
for instance if I import my module like so
from spam.eggs import sausage
my hypothetical method would return something like
given that module object.

More information about the Python-list mailing list