views:

24

answers:

1

hello all, how to set or create new environment variables in ubuntu(10.04, 64bits), for a python library. I have to configure

PYTHONPATH

library_HOME

library_data

thanks for your help

+3  A: 

In bash, you can use export:

export PYTHONPATH=/path/to/library
export library_HOME=/path/to/library_HOME
etc.

You can put these lines in your ~/.bashrc or ~/.bash_profile to have them loaded every time you start a login shell.

Nathon