Find the location of a loaded module
aaron.hildebrandt at gmail.com
Fri Feb 20 13:28:34 EST 2009
I'm running into a problem that's rapidly reaching keyboard-smashing
levels. I'm trying to import a module into Python, but it seems like
Python is almost randomly loading the module from an entirely
different directory, one that shouldn't be in the module search path.
When I tell Python to load a module, is there a way to tell which
directory the module was loaded from?
More information about the Python-list