Windows/DOS: double clicking a .py file

R.Marquez ny_r_marquez at
Tue Sep 10 10:18:00 EDT 2002

What I do is the following:

    print "Program encountered an error:"
    print sys.exc_type
    print sys.exc_value


Peter Hansen <peter at> wrote in message news:<3d7d6f26 at>...
> David LeBlanc wrote:
> > cmd.exe will accept a flag telling it to stay open after something is run.
> > You can create a shortcut along the lines of:
> > 
> > cmd /K python <args>
> [snip rest]
> Although, unfortunately for the OP who has users on Win98, cmd.exe does
> not exist except in NT/2K/XP.
> -Peter

More information about the Python-list mailing list