python: set $PYTHONPATH for environment

I use this, because when I log in via SSH from another server, for some reason the PYTHONPATH is not set, so I set it up this way.

 

vim /etc/environment:

add to the end of the file

PYTHONPATH="$PYTHONPATH:/YOUR_DESIRED_DIRECTORY:/"

Leave a Reply

Your email address will not be published. Required fields are marked *