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

Kent Johnson kent_johnson at skillsoft.com
Mon Aug 9 14:37:26 CEST 2004


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



More information about the Tutor mailing list