newbie question about PYTHONPATH
Westley MartÃnez
anikom15 at gmail.com
Sat Feb 19 14:00:22 EST 2011
On Sat, 2011-02-19 at 19:22 +0100, Andrea Crotti wrote:
> 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
It's even safer to use
export PYTHONPATH=$PYTHONPATH:/your/path
More information about the Python-list
mailing list