Re: keep console window after double-click foo.py
by smr other posts by this author
Mar 23 2007 2:00PM messages near this date
view in the new Beta List Site
Re: keep console window after double-click foo.py
|
ANN: ActivePython 2.5.0.0 is now available
On Thu, Mar 22, 2007 at 02:24:20PM -0700, Trent Mick wrote:
> Try this:
>
> try:
> main()
> except:
> import traceback
> print "The script crashed:"
> traceback.print_exc()
> print "Press RETURN to exit..."
> sys.stdin.readline()
Beautiful, thanks! As you and Frank Müller surmised, I didn't
properly understand the try/catch semantics.
-Steve
_______________________________________________
ActivePython mailing list
ActivePython@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
Thread:
smr
Fra Mue
Trent Mick
smr
|