problem in appending a path to sys.path

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

ketulp_baroda at 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\ (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 is case-sensitive in
this respect.


More information about the Python-list mailing list