Reputation: 3241
I have a problem where my PYTHONPATH variable always has a blank value. I can fix it temporarily like this:
export PYTHONPATH=$(python -c 'import sys;print ":".join(sys.path)')
but is there a more permanent way to do this?
Upvotes: 3
Views: 3812
Reputation: 45223
Upvotes: 1
Reputation: 78590
You could put that line in your ~/.bash_profile
file, at which point it is run each time a new terminal is opened. (See here for more about this file).
Upvotes: 1