views:

54

answers:

1

I put this at the top, using "sudo vi /etc/profile":

PYTHONPATH=/home/myuser:/home/myotheruser

When I use putty and log in under my username, the python path does not work! I type "set", and it is there. But, importing things from that directory still does not work.

When I manually do this, then it will work.

EXPORT PYTHONPATH=/home/myuser:/home/myotheruser

However, I don't want to do that everytime. I simply want this path to be appended to everyone, at startup.

+4  A: 

You need to export the PYTHONPATH even in /etc/profile.

Make sure you have these lines both in /etc/profile.

PYTHONPATH=...
export PYTHONPATH

After that login again.

ankon