Setting Environment Variables

David Porter jcm at bigskytel.com
Sat Dec 23 07:17:59 EST 2000


* Ben Ocean <beno at TheWebsons.com>:

> I'm trying to set environment variables so I can define my own path for my
> modules. My problem is I don't know where to set the PYTHONPATH. My book
> says do it in the .cshrc file: where the heck's that? My Linux book says it
> should be in the /home directory, but it isn't. I own this server and it's a
> standard RedHat 6.2 install. Please advise.

What is your shell? It is probably bash. if so, add something like this to
/home/username/.bashrc:

export PYTHONPATH=/path/to/modules

If adding more than one path put a colon between them.


David




More information about the Python-list mailing list