Re: find the path of a module

2008-09-16 Thread Michael Palmer
On Sep 16, 4:07 pm, [EMAIL PROTECTED] wrote: > 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 > '/home/developer/pro

find the path of a module

2008-09-16 Thread vvangelovski
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 '/home/developer/projects/spam/eggs/sausage.py/c' given that module object. -