Help setting path on windows

Matt Gerrans mgerrans at ix.netcom.com
Fri Dec 7 03:18:49 EST 2001


Interesting, it seems the paths in these pth files are searched, but they are
not added to the python path (sys.path).

- mfg

Alex Martelli <aleax at aleax.it> wrote in message
news:9unvgl$p9a$1 at serv1.iunet.it...
> "Stephen Boulet" <stephen.boulet at motorola.com> wrote in message
> news:3C0D1802.6D93D957 at motorola.com...
> > Can someone help me?
> >
> > I'd like to be able to do:
> >
> >   from someModule import *
> >
> > and have my someModule.py file imported. Thanks.
>
> Probably simplest: add to directory C:\Python21 (if that's where
> you installed Python) a textfile named
>     anyname.pth
> (any name, extension must be PTH).
>
> In this file, list, one per line, all directories you want to
> be searched for modules you import.
>
>
> Alex
>
>
>





More information about the Python-list mailing list