[Pythonmac-SIG] mod search path
kevin
kevin at macosx.com
Mon Feb 23 05:21:52 EST 2004
hmm.. if i type:
% setenv PYTHONPATH
/Users/kevin:/Users/kevin/scripts:/Users/kevin/cmix:/Users/kevin/python
Then launch python and type:
>>> import sys
>>> x = sys.path
>>> for i in x:
... print i
...
i get :
/Users/kevin
/Users/kevin/scripts
/Users/kevin/cmix
/Users/kevin/python
/usr/local/python/lib/python23.zip
/usr/local/src/Python-2.3.3/Lib
/usr/local/src/Python-2.3.3/Lib/plat-darwin
/usr/local/src/Python-2.3.3/Lib/plat-mac
/usr/local/src/Python-2.3.3/Lib/plat-mac/lib-scriptpackages
/usr/local/src/Python-2.3.3/Lib/lib-tk
/usr/local/src/Python-2.3.3/Modules
/usr/local/src/Python-2.3.3/build/lib.darwin-6.8-Power_Macintosh-2.3
/usr/local/python/lib/python2.3/site-packages
---
so it all works as one would expect ... but if i put that same line in
any of my ~/Library/init/tcsh files:
aliases.mine
completions.mine
environment.mine
path
rc.mine
log out, log back in and do the same dance, nothing is added to my
PYTHONPATH.
I am only doing this in the shell so i don't think that i would need to
set this in the .MacOSX/environnment.plist
so what gives?
kind of crazy... Hmm...
cheers,
kevin
More information about the Pythonmac-SIG
mailing list