python interpreter path

Albert Wagner alwagner at tcac.net
Wed Mar 29 20:21:08 EST 2000


Please explain how the python interpreter searches for included
modules.  If PYTHONPATH=/usr/lib/python1.5, and I keep all of my
installs and my own code downtree from there will it find it?  i.e. does
it do a recursive search.  Also what function do the *.pth files
perform?  I sometimes notice that a pkg installed into
$PYTHONPATH/site-packages will insert an *.pth file into the
site-packages dir.  Thanks ahead for any help.

Albert

-- 
Small is Beautiful



More information about the Python-list mailing list