Where does IDLE expect to find imported files?

CarolineBlue Midnightblue3 at btinternet.com
Wed May 22 19:18:39 EDT 2002


BlankCan't get import to work - need to know correct directory to put
.py files in for processing

I have just installed Python 2.2.1 under Windows 98SE (from a Computer
Shopper CD).  I am working my way through the Tutorial, but cannot
import files for processing by IDLE.  Where does IDLE expect to find
the named file (eg. prog.py), so that "import prog.py" will work?

  I tried putting it various directories, such as /usr/local/bin
/usr/local/lib /usr/local/bin/python but none have worked.  SO where
is the magic directory?

Caroline.






More information about the Python-list mailing list