I want to automatically add entries to python's sys.path variable when run by my user in linux. Is there something I can tweak in my home directory to get it done?
+3
A:
The environment variable PYTHONPATH
sets the initial sys.path
value.
You can set that it your shell initialization script (e.g. .bashrc
or .cshrc
)
Douglas Leeder
2009-03-03 12:49:36
+1: Quote the documentation.
S.Lott
2009-03-03 13:29:26