REPOST: Re: 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.

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool1-milwwi.newsops.execpc.com!newsfeeds.sol.net!news-out.visi.com!hermes.visi.com!newsxfer.interpacket.net!news-xfer.nuri.net!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: osuchw at ecn.ab.ca (waldekO)
Newsgroups: comp.lang.python
Subject: cmsg cancel <c5b3dbee.0112270807.b4f3b18 at posting.google.com>
Control: cancel <c5b3dbee.0112270807.b4f3b18 at posting.google.com>
Date: Mon, 31 Dec 2001 01:38:57 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.c5b3dbee.0112270807.b4f3b18 at posting.google.com>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009775725 27193 211.57.49.2 (31 Dec 2001 05:15:25 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 05:15:25 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list