MSDOS window

Jeffrey Kunce kuncej at mail.conservation.state.mo.us
Thu Aug 26 10:55:25 EDT 1999


Launching python with the "-i" command-line option
will keep the window open when the script is
finished. 

I like to define a new action for .py files called "test"
For "Application used to perform action", I specify:
   "C:\Program Files\Python\python.exe" -i "%1"
If I right-click a python script, and select "test", the
script will run, but the window will stay open.

This also works for debugging: when the script stops
running (normally or with an error), you can examine
variables and execute statements interactively from
the command line. You can also run the python
debugger (pdb) on the results.

  --Jeff


>>> <henry299 at my-deja.com> 08/25/99 10:21PM >>>
Hi, i'm new at this. I just downloaded version
1.5.2 for windows 95. When i double click on a
program in the windows explorer, (example.py
which is  print "This is some example text") an
MS-DOS window opens and the text is displayed,
but the window closes by itself in less than a
second. Am i doing something wrong, and is there
a way to keep the popup window open? Any help
would be greatly appreciated.

Thanks in advance,

Matt


Sent via Deja.com http://www.deja.com/ 
Share what you know. Learn what you don't.





More information about the Python-list mailing list