The Module Search Path is ???

Gerhard Häring gerhard.haering at
Tue Sep 3 03:32:06 EDT 2002

In article <7153651c.0209022255.7fd50ba0 at>, black wrote:
> tutorial told me I could found it in the folder:/usr/local/lib/python.
> but my OS is windows so folders are different.


The module search path is dynamically constructed during Python startup, but
can be changed even at a later point.

It's in sys.path:

>>> import sys
>>> sys.path
['', 'C:\\Python22\\Lib\\site-packages\\Pythonwin', 'C:\\Python22\\Lib\\site-pac
kages\\win32', 'C:\\Python22\\Lib\\site-packages\\win32\\lib', 'C:\\Python22\\Li
b\\site-packages', 'C:\\Python22\\DLLs', 'C:\\Python22\\lib', 'C:\\Python22\\lib
\\lib-tk', 'C:\\Python22', 'C:\\Python22\\lib\\site-packages\\PIL']

-- Gerhard

More information about the Python-list mailing list