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

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


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.


At 12:26 PM 8/9/2004 +0200, Bernard Lebel wrote:
>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:
>'C:\\Python23\\Lib\\site-packages\\mysql-python-1.0.0.win32-py2.3' )
>Tutor maillist  -  Tutor at python.org

More information about the Tutor mailing list