Help setting path on windows

Alex Martelli aleax at aleax.it
Thu Dec 6 09:31:50 EST 2001


"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