Running a script in IDLE?

Rodney Loisel rloisel at helicon.net
Tue Aug 1 19:42:23 EDT 2000


I replaced the 0.1 idle with 0.5 (moved the old idle to a subdir.
Now clicking on the idle.py or the idle.pyw will not  give any
response. Clicking on the old idle.pyw in the 'oldidle' directory
works okay. Tried to run idle.pyw and .py in a DOS window
and there is an error:
file "idle.pyw"  line 3
PyShell.main( )
File:  ....path... PyShell.py, Line 695
Sys.path[i] = os.path.abspath(sys.path[i])
Attribute error: abspath

Suggestions?
Rodney Loisel Enfield NH

Gilles Lenfant wrote:

> Rodney Loisel a écrit :
>
> > In CH6 of  Laningham's "Teach Yourself Python ..." the text
> > shows running an example script in a DOS window and IDLE.
> > I loaded the file into IDLE which created a new window for
> > the script but could find no way to run that script without typing
> > it over again in the inter-active IDLE window.  It would be so
> > much easier to run scripts from IDLE if that's possible.
> >
> > btw - IDLE responds to my voice-rec. program and that sure
> > saves a lot of typing ...
> >
> > rloisel at helicon.net Rodney Loisel Enfield NH.
>
> With IDLE 0.5 (don't know for previous versions), put the script window
> on top, save the script if required (Ctrl+X-Ctrl+S) and hit Ctrl+F5.
> It's in the "Edit" menu.




More information about the Python-list mailing list