newbie question about PYTHONPATH

Andrea Crotti andrea.crotti.0 at
Sat Feb 19 19:22:46 CET 2011

Il giorno 19/feb/2011, alle ore 18.25, Doug Epling ha scritto:

> The best way I have found is to place that definition of your PYTHONPATH in your .bash_profile in your home directory and export it from there.
> 	PYTHONPATH=/home/foo/prog/learning_python
> 	export PYTHONPATH
>  This way your PYTHONPATH is picked up each time you log on.  You might have to restart IDLE for the changes you mention below to take effect.

Yes but like this you overwrite it
export PYTHONPATH=/your/path:$PYTHONPATH

is much more safe to use

More information about the Python-list mailing list