Code run from IDLE but not via double-clicking on its *.py

max maxume at yahoo.com
Tue Aug 30 10:35:50 EDT 2005


"n00m" <n00m at narod.ru> wrote in
news:1125402893.124342.54690 at g47g2000cwa.googlegroups.com: 

> When I double-click on "some.py" file console window appears just
> for a moment and right after that it's closed. If this script is
> started from inside of IDLE (F5 key) then it executes as it
> should be (e.g. executing all its print statements).
> 
> Any ideas? OS: Windows; Python 2.3.4. Thanks.
> 
> 

It's a windows thing. The shell windows opens to run the script in is 
closing when the script finishes.

Try opening a shell (Start->Run: cmd.exe on NT/2k/XP or Start->Run: 
command.com on 95/98) and then either type the full path to the script 
or navigate to it and execute it.

max



More information about the Python-list mailing list