problem in appending a path to sys.path

Peter Hansen peter at engcorp.com
Wed Feb 25 20:37:17 CET 2004


ketulp_baroda at yahoo.com wrote:
> 
> What am I doing wrong here??

As rabbits77 said, your change is not being persisted.  What you
can do instead of using PYTHONPATH, if you wish, is read the header
comment in the file python\lib\site.py (i.e. look in your Python 
folder tree for that file) and create a ".pth" file with the appropriate
contents.  As you are on Windows, make sure you take care to create it
with a lower-case extension, not .PTH, as site.py is case-sensitive in
this respect.

-Peter



More information about the Python-list mailing list