Modify Python Path

GerritM gmuller at worldonline.nl
Sat Dec 7 15:34:45 EST 2002


"Kenneth Gomez" <kennethg at pd.jaring.my> schreef in bericht
news:3df252a2.2123848 at news.jaring.my...
<...snip...>
> my path : c:\test
>
> but, Python still cant find the modules that I have saved in the test
> directory.
>
> Could you kindly advise me where to make the necessary changes?
>
> Thank you.
> Cheers,
> Kenneth Gomez.

another simple way to achieve this is by creating a file test.pth in the
main python directory (C:\Python22 on my computer), with a single line of
ASCII text:
c:\test

Python will add the content of the .pth files to the pythonpath when
starting up.

kind regards, Gerrit

--
www.extra.research.philips.com/natlab/sysarch/






More information about the Python-list mailing list