Beginner's question: executing scripts under Win XP pro
Scott Souva
ssouva at spambites.twcny.rr.com
Sat Mar 25 10:12:35 EST 2006
On Sat, 25 Mar 2006 14:45:34 +0100, "Jean-Claude Garreau"
<jean-claude.garreau at univ-lille1.fr> wrote:
>Hi,
>
>I'm a beginner with python 2.4. I use it on Win XP Pro. I have no problems
>with the GUI IDLE, but
>when I copy the instructions in a script file, say 'test.py' and double
>click on the file, I have just a
>console window for a few moments, no output shown and the window closes
>automatically before
>I can do anything else. I am greatful if anyone can help me.
>
>Please reply also to jean-claude.garreau at univ-lille1.fr
>
>Thanks a lot,
>
> Jean-Claude
>
Your script may be working properly, but XP simply removes the window
after the script runs. Here is a simple fix that will stop at the end
of the script and leave the Command window open:
print "Hello World"
raw_input()
More information about the Python-list
mailing list