Is there some Python function that searches "sys.path" for a module?

John Nagle nagle at
Tue Jan 15 08:45:35 CET 2008

Shane Geiger wrote:
> If I understand you correctly, you want this:
> module.__file__

    No, this is for a module that isn't loaded, and
I don't want to load it. What I needed was "imp.find_module()".
I don't want to load the module in the current Python instance.
I need its path so I can start it in a subprocess.

				John Nagle

More information about the Python-list mailing list