what is Python's module search path?

Stephen Ferg steve at ferg.org
Thu Jan 8 16:38:51 CET 2004

I need a little help here.

I'm developing some introductory material on Python for non-programmers.

The first draft includes this statement.  Is this correct?

When loading modules, Python looks for modules
in the following places in the following order:

 * Python's built-in modules, including modules in the standard library
 * in the /python23/Libs/site-packages directory
 * the directory from which your main module was loaded
 * in directories in PYTHONPATH
Thanks in advance!  -- Steve Ferg

More information about the Python-list mailing list