Permanently Adding A Directory to Pythonpath
aleaxit at yahoo.com
Mon May 28 16:20:06 CEST 2001
"Darren Watson" <Darren.Watson3 at ntlworld.com> wrote in message
news:JBqQ6.6997$lm5.1200570 at news6-win.server.ntlworld.com...
> 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