Windows/DOS: double clicking a .py file
R.Marquez
ny_r_marquez at yahoo.com
Tue Sep 10 10:18:00 EDT 2002
What I do is the following:
try:
something()
except:
print "Program encountered an error:"
print sys.exc_type
print sys.exc_value
os.system("pause")
-Ruben
Peter Hansen <peter at engcorp.com> wrote in message news:<3d7d6f26 at news.sentex.net>...
> 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 myscript.py <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