Help! $PYTHONPATH trouble

Erik Stewart possum at n-space.org
Thu Aug 12 23:17:02 CEST 1999


The variable $PYTHONPATH doesn't seem to have any effect on my system (RH
Linux 6.0, Python 1.5.1).  Here's what I get after defining $PYTHONPATH:

$ PYTHONPATH="home/possum/test/kwp"
$ echo $PYTHONPATH
home/possum/test/kwp
$ python
Python 1.5.1 (#1, Mar 21 1999, 22:49:36)  [GCC egcs-2.91.66 19990314/Li
on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import sys
>>> sys.path
['', '/usr/lib/python1.5/', '/usr/lib/python1.5/test',
'/usr/lib/python1.5/plat-linux-i386', '/usr/lib/python1.5/lib-tk',
'/usr/lib/python1.5/lib-dynload', '/usr/lib/python1.5/site-packages']
>>> 

Shouldn't sys.path contain the value "home/possum/test/kwp"?




More information about the Python-list mailing list