module file

Imbaud Pierre pierre.imbaud at laposte.net
Fri Jan 12 17:42:30 CET 2007


I am willing to retrieve the file an imported module came from;
module.__file__, or inspect.getfile(module) only gives me the
relative file name. How do I determine the path?
Its obviously possible from python: ipython displays the information
(interactively: *module?*).
Python 2.4 on Suse 9.3 (clueless, I guess)



More information about the Python-list mailing list