[Tutor] sys.path..... - PATH, one more time...
12 Dec 2001 12:06:29 +0000
It is a way of altering your sys.path without having to use a
PYTHONPATH. So for example if I had some packages in
/home/steve/pymodules I could add them to my python startup by forming a
file in /usr/lib/python1.5/site-packages called something like
mysite.pth in the file I would just list the directory location for my
Here's the formal explanation:
Daryl Harms and Kenneth McDonald provide an explanation of the options
On Fri, 2001-12-07 at 09:35, email@example.com wrote:
> > There's also the .pth extension in Windows. You can list
> > directories there which you want 'import xxx' to search/find.
> What's this then? Its new to me.
> Can you expand Kirby?
> Alan G.
> Tutor maillist - Tutor@python.org