[Tutor] PYTHONPATH

Bruce Sass bsass@freenet.edmonton.ab.ca
Sun, 25 Feb 2001 00:49:14 -0700 (MST)


On Sat, 24 Feb 2001 michaelbaker@operamail.com wrote:
> I'm  LinuxPPC (based on Red Hat 6.1), the python interpreter works just
> fine, but another program (Blender) which has a pyhton API cannot find
> modules to import. I'm trying to change my .cshrc file to set PYTHONPATH
> without luck. I've added this line to my .cshrc:
>
> setenv PYTHONPATH "/usr/lib/python1.5/"
>
> this doesn't work - help???
> thanks

This is what python 1.5.2 thinks the path is on my Debian box,

>>> sys.path
['', '/usr/lib/python1.5/', '/usr/lib/python1.5/plat-linux2',
'/usr/lib/python1.5/lib-tk', '/usr/lib/python1.5/lib-dynload',
'/usr/local/lib/python1.5/site-packages',
'/usr/local/lib/site-python', '/usr/lib/python1.5/site-packages',
'/usr/lib/python1.5/site-packages/HTMLgen',
'/usr/lib/python1.5/site-packages/PIL',
'/usr/lib/python1.5/site-packages/graphics',
'/usr/lib/python1.5/site-packages/Numerical',
'/usr/lib/site-python']


- Bruce