How to run scripts from idle

Tim Gahnström md9tim at mdstud.chalmers.se
Mon Jun 5 09:29:09 EDT 2000


When I start idle and have the window called
Pyton Shell
starting with 
>>> I canot load scripts I have created.

I can type >>>Print "Hi"
but If I create a file named hi.py containing print "hi"

And try to run it I just gett the error message 
---
Traceback (innermost last):
  File "<pyshell#5>", line 1, in ?
    test
NameError: test
---
It seems like idle wont find my scripts but I have tried put them al over
the computer :-) and the path seems correct.

Tim Gahnström




More information about the Python-list mailing list