Permanently Adding A Directory to Pythonpath

Alex Martelli aleaxit at yahoo.com
Mon May 28 10:20:06 EDT 2001


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

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.


Alex






More information about the Python-list mailing list