sys.path ordering question
Kerim Borchaev
warkid at storm.ru
Tue Dec 18 04:54:40 EST 2001
Could someone explain the paths ordering logic used to create sys.path
listed below?
Why win32 extensions are before standard python paths but Numeric and other
after?
(I know this ordering makes sense - it's how modules are searched.
And in fact I'm asking this to get guidelines how should I arrange my own
packages.)
>>> import sys
>>> import pprint
>>> pprint.pprint(sys.path)
['',
'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\\PIL',
'C:\\Python21\\PPM']
Thanks in advance...
Ragards,
Kerim.
More information about the Python-list
mailing list