keep console window after double-click foo.py
by smr other posts by this author
Mar 22 2007 2:08PM messages near this date
view in the new Beta List Site
Patrick J FINNEGAN is out of the office.
|
Re: keep console window after double-click foo.py
Howdy,
I installed Active State Python, and wrote a simple script, say
'foo.py'. If I double-click on 'foo.py' from the windows explorer, a
console window opens, the script executes, and the window closes
again.
I'd like the window to stick around if there are any exceptions
raised. I tried to put all my code in function main() and use
try:
main()
except None:
raise
else:
print "Press RETURN to exit..."
sys.stdin.readline()
No dice: the window closes even if main() raises an exception.
Any idea how to do it?
Thanks,
-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
|