[Tutor] Run script automatically in IDLE shell

2005-12-07 Thread Yann Le Du
Hello,

I'd like to have some scripts run directly inside the IDLE shell when I 
double click on some properly built shortcut, and not inside the DOS 
window. I've managed to do that under win98, but failed in win2000 and 
winXP.

I dont' want to have to run module inside the idle editor, just direct 
execution when double clicking on some shortcut.

In win98 my shortcut is :

C:\Python22\pythonw.exe C:\PYTHON24\Tools\idle\idle.py prog.py

and this opens an IDLE shell window in which my script is executed.

Anyone knows how to do that in win2000 and winXP, with python24 ?

P.S. I do all this to have accentuated characters (French) correctly 
displayed, and this is done in the IDLE Shell, but fails inside the DOS 
window. So this is why I want to have my scripts run directly inside the 
IDLE shell...

--
Yann Le Du
http://yledu.free.fr
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Run script automatically in IDLE shell

2005-12-07 Thread Alan Gauld

The IDLE documentation (run idle -h) says that 

idle -r file.py 

runs the commands in the file.
Is that what you are doing? It looks different to your Win98 version.

 P.S. I do all this to have accentuated characters (French) correctly 
 displayed, and this is done in the IDLE Shell, but fails inside the DOS 
 window. So this is why I want to have my scripts run directly inside the 
 IDLE shell...

Do you have the correct language and locale settings set up in your 
DOS environment? It should be able to display French characters 
(and any other Western alphabet - not sure about unicode stuff though)
just fine.

Alan G.
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor