How do I configure my sys.path variable in linux?
-
03-07-2019 - |
Question
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?
Solution
The environment variable PYTHONPATH
sets the initial sys.path
value.
You can set that it your shell initialization script (e.g. .bashrc
or .cshrc
)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow