Newbie python query
Alan Gauld
alan.gauld at bt.com
Mon Apr 9 12:15:33 EDT 2001
Ben Hawkes wrote:
> I've just started using python on my win95 box
> totally unsure on how to load a .py file into the interpreter
Assuming the Python install worked OK (you have
actually installed it, yes?) then the file association
should be set up for you(and in explorer the icon will
be a green snake)
In that case just double click the .py file.
A DOS box will open, the script will riun, displaying
output in the DOS box and then close again.
To keep the box open to see what it said add a line like:
raw_input("Hit enter to exit")
at the end of your script.
Alternatively go into the file properties bit of explorer
and change the startup line to add a command line option
to stop the interpreter quitting after running your program.
Sorry I can'r remember which it is but try searching the
documentation...
Personally I just use raw_input :-)
Alan G
More information about the Python-list
mailing list