PYTHONPATH problems

Tim Isakson loiosh13 at yahoo.com
Wed Nov 19 22:21:34 EST 2003


OK - I just checked Programming Python out from the library, and am
enjoying seeing the examples (I've dabbled in Python some previously, but
an trying to expand my knowledge a bit).

I'm having a problem getting the PYTHONPATH to work - I've got the
variable set in the shell (and exported), and it's showing up when I do
this:

-- Begin --
Python 2.2.2 (#2, Feb  5 2003, 10:40:08) [GCC 3.2.1 (Mandrake Linux 9.1
3.2.1-5mdk)] on linux-i386 Type "help", "copyright", "credits" or
"license" for more information.
>>> import sys
>>> print sys.path
['', '/home/tim/python/PP/Examples', '/usr/lib/python2.2',
'/usr/lib/python2.2/plat-linux-i386', '/usr/lib/python2.2/lib-tk',
'/usr/lib/python2.2/lib-dynload', '/usr/lib/python2.2/site-packages']
>>>
>>>
-- End --

However, it isn't finding any of the modules in the directory tree that
begins under /home/tim/python/PP/Examples (it's not having any problems
with the standard modules - as evidenced by the import of sys above).

I'm at a loss - any thoughts on what I'm doing incorrectly?

Thanks for any assistance!

Tim




More information about the Python-list mailing list