python path

Jonas Geiregat kemu at sdf-eu.org
Thu Nov 28 11:07:29 EST 2002


Adam Langley wrote:

> On Thu, 28 Nov 2002 16:18:56 +0100, Jonas Geiregat wrote:
>
>
> >on linux
> >how can add new path's to my sys.path var not with append cause when the
> >programme closes or interpreter it changes again ?
> >so save it somewhere ?
>
>
> set $PYTHONPATH in your shell rc file (e.g. ~/.bashrc)
>
don't get it here is how my bashrc file looks like

# .bashrc

# User specific aliases and functions
$PYTHONPATH = /usr/lib/wxPython
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi




More information about the Python-list mailing list