[Tutor] sys.path.append() not permanent?

Bernard Lebel python at bernardlebel.com
Mon Aug 9 14:47:49 CEST 2004


Thanks Kent, it worked like a charm.


Bernard


----- Original Message -----
From: "Kent Johnson" <kent_johnson at skillsoft.com>
To: <tutor at python.org>
Sent: Monday, August 09, 2004 2:37 PM
Subject: Re: [Tutor] sys.path.append() not permanent?


> Bernard,
>
> Create a file called sitecustomize.py containing your sys.path.append
> statement.Save it in C:\Python23\Lib\site-packages\sitecustomize.py. It
> will be imported each time you run python.
>
> Kent
>
> At 12:26 PM 8/9/2004 +0200, Bernard Lebel wrote:
> >Hello,
> >
> >I'm appending a sys path for a module, but each time I launch python
(using
> >PythonWin) the path is gone and I have to reappend it. Is there a way to
> >append the path so it actually stays appended?
> >
> >I'm running:
> >sys.path.append(
> >'C:\\Python23\\Lib\\site-packages\\mysql-python-1.0.0.win32-py2.3' )
> >
> >
> >Thanks
> >Bernard
> >
> >_______________________________________________
> >Tutor maillist  -  Tutor at python.org
> >http://mail.python.org/mailman/listinfo/tutor
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>



More information about the Tutor mailing list