Permanently Adding A Directory to Pythonpath

Alex Martelli aleaxit at
Mon May 28 16:20:06 CEST 2001

"Darren Watson" <Darren.Watson3 at> wrote in message
news:JBqQ6.6997$lm5.1200570 at
> Hi
> I would like to know how to add a directory to my Pythonpath permanently.

Simplest may be to have, in your PYTHONHOME directory (for
example, on Windows, D:\Python21 if you have Python 2.1 and
have chosen to install it there, as it its default), a text
file with any name and extension .PTH, listing, one per line,
the path of directories you want to be added to sys.path.


More information about the Python-list mailing list