Very elementary help in using Python on Windows 98

Jeff Melvaine jeffm52 at rivernet.com.au
Sat Sep 8 01:24:29 EDT 2001


Fred Pacquier <fredp at mygale.org.nospam> wrote in message
news:Xns9115BAEBD4AD3PaCmAnRDLM at 161.48.128.20...
> "Jeff Melvaine" <jeffm52 at rivernet.com.au> said :
>
> > I have begun to experiment with Python on Win98 on my personal laptop.
> > When I set up a script xxx.py and double click the icon to run it, I
> > get a window (presumably some kind of debugging console)which lasts for
> > a few seconds, flashes a message and dies instantly so I can't read it.
> >  There is evidently a problem in my script somewhere, but how can I get
> > the window to hang around long enough to see what it is?
>
> Hey, for once there is a question in this group I can answer instead of
ask
> myself :-)
>
... [explanations appreciated but snipped in deference to netiquette]
>
> If you right-click COMMAND.PIF in Explorer and choose "Properties", you
> will see a "Program" tab with a checkbox that says something like "Close
> when finished" (sorry, I only have French versions here, can't recall
> exactly)... Uncheck that and afterwards the DOS window will stay open so
> you can read its contents, until you manually close it.

Brilliant.  Thanks.
>
> Unfortunately this will be true for _all_ DOS windows launched by file
> association to DOS apps, not only Python. If this is inconvenient (it is
> :), you can consider creating a PYTHON.PIF file (in the same directory as
> python.exe, or under the windows dir), and change only that one.
>
> Another way is to open the DOS box yourself (the icon is in the start
menu,
> programs), then cd to the directory where your script is, then type
"python
> myscript.py". Use "exit" to close the DOS box.
>
> Such are the joys of life under MSWIN. Really feels strange teaching a
Unix
> adept about these things :-))

Like the guy said when someone commented on his bloodshot eyes, "you should
see them from this side!".
>
> HTH,
> fp
>
> --
> YAFAP : http://www.multimania.com/fredp/





More information about the Python-list mailing list