how do i add a new path into sys.path?

wen wenming_hu2002 at hotmail.com
Thu Aug 18 04:22:17 EDT 2005


on my system(win2k server, python 2.3.5),
>>> import sys
>>> print sys.path
['C:\\', 'C:\\WINNT\\system32\\python23.zip',
'C:\\Python23\\lib\\site-packages\\Pythonwin',
'C:\\Python23\\lib\\site-packages\\win32',
'C:\\Python23\\lib\\site-packages\\win32\\lib',
'C:\\Python23\\lib\\site-packages', 'C:\\Python23\\DLLs',
'C:\\Python23\\lib', 'C:\\Python23\\lib\\plat-win',
'C:\\Python23\\lib\\lib-tk', 'C:\\Python23', 'D:\\Program Files\\DeLano
Scientific\\PyMOL\\modules']

now, i wanna add  "C:\Python23\Pmw\Pmw_1_2\lib" into sys.path, how?

any help would be appreciated.

with my kind regards,
Wen





More information about the Python-list mailing list