2

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?

1 Answer 1

6

The environment variable PYTHONPATH sets the initial sys.path value.

You can set that it your shell initialization script (e.g. .bashrc or .cshrc)

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.