Windows/DOS: double clicking a .py file

Just just at xs4all.nl
Mon Sep 9 16:36:37 EDT 2002


In article <3h7f9.77472$l_4.28399 at atlpnn01.usenetserver.com>,
 "Steve Holden" <sholden at holdenweb.com> wrote:

> "Just" <just at xs4all.nl> wrote in message
> news:just-F18BA3.17425609092002 at news1.xs4all.nl...
> [ how top see messages ]
> >
> > Thanks for both suggestions. Another workaround just occured to me: do a
> > raw_input("type enter to exit") in an exception hook. That should work
> > just fine in a py2exe-fied app as well I suppose.
> >
> 
> python -i
> 
> will allow you to enter interactive statements after your execution
> finishes, which can be useful when you're debugging.

Actually, debugging on my side is not really the problem (I usually 
start the app from the command line anyway, it's a simple 
platform-neutral command line tool), but it's end users: they want to 
drop files onto the app. The DOS window can go away if everything went 
ok (it only displays some progress info), but not if an exception 
occurred: I want them to a) be able to tell something's wrong, and b) 
tell me _what_ went wrong ;-). The raw_input() call upon exception seems 
the easiest workaround for now.

Just



More information about the Python-list mailing list