How is sys.path initialized without a PYTHONPATH?

A. Keyton Weissinger keyton at weissinger.org
Sun Dec 2 06:03:57 CET 2001


I am using ActiveState's ActivePython 2.1. I do NOT have a PYTHONPATH
environment variable set on my machine. When I fire up the interpreter
shell, and do the following:

>>> import sys
>>> print sys.path

I get the following:

['', 'C:\\Python21\\Pythonwin', 'C:\\Python21\\win32',
'C:\\Python21\\win32\\Lib', 'C:\\Python21', 'C:\\Python21\\DLLs',
'C:\\Python21\\lib', 'C:\\Python21\\lib\\plat-win',
'C:\\Python21\\lib\\lib-tk', 'C:\\Python21\\Numeric', 'C:\\Python21\\PPM']

Where is the list being generated since I have no PYTHONPATH variable? Can I
configure this somehow to include more places (without having to append() to
the sys.path in the interpreter shell)?

Thank you...

Keyton





More information about the Python-list mailing list