IDLE module path problem
GerritM
gmuller at worldonline.nl
Sun Oct 20 06:06:11 EDT 2002
"papua" <a at hotmail.com> schreef in bericht
news:MPG.181be1164d06a0a5989680 at news.newsfeeds.com...
> I have a python script /yyy.py/ that starts with
>
> from xxx import *
>
> where /xxx.py/ is a file in the same directory as /yyy.py/. When I start
> this program from the MS Windows console, it runs but when I start it
> from IDLE then /xxx.py/ is not found. What should I do?
>
> --
> TIA,
> Janos Blazi
>
>
> -----------== Posted via Newsfeed.Com - Uncensored Usenet News
==----------
> http://www.newsfeed.com The #1 Newsgroup Service in the World!
> -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers
=-----
One way to make sure that the interpreter finds modules in its path is by
providing .pth files in the Python main directory. In this file you put a
single text line with the path name:
C:/dirname/moduledir
All pathes in pth files are added to the Python path and will be found
irrespective of the current working directory.
regards Gerrit
--
www.extra.research.philips.com/natlab/sysarch/
More information about the Python-list
mailing list