module file

Imbaud Pierre pierre at saiph.com
Sat Jan 13 04:39:01 EST 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?*).
NB: I saw the discussion about the python path, "find a .py path",
this is different! Its not the script, but the module I want to
retrieve!



More information about the Python-list mailing list