Running a script in windows
waldekO
osuchw at ecn.ab.ca
Thu Dec 27 11:07:27 EST 2001
Jonathan Gardner <jgardn at alumni.washington.edu> wrote in message news:<mailman.1009453709.27011.python-list at python.org>...
> I know this comes up a lot, but I can't seem to find the answer in the
> archives. (If the answer is RTFM, please let me know where.)
>
> I don't have a windows box on my desk. A friend of mine does, but I can't get
> to it. He is trying to run a program I wrote, but the error message is coming
> up too fast for him to catch it. How can you keep that error message window
> around longer in Win2K? (BTW, let's pretend he doesn't know how to use the
> DOS prompt.)
>
> Jonathan
As the last line of your program put something like this
raw_input('\nPress Enter key to close')
It will keep DOS window open and you will be able to read error message.
More information about the Python-list
mailing list