Newbi q: show prog

Amaury Forgeot d'Arc amaury.forgeotdarc at ubitrade.com
Wed Nov 26 07:17:03 EST 2003


christoffer81 at mail.dk (Christoffer T) wrote:
> I have tried to write "python file.py" in run, but it just very fast
> open and close dos window. So what should I do to get to show the
> program.

Try "python -i file.py"
This will force python to enter interactive mode after running your
script.
Hit <F6> and <return> to exit.

Alternatively, you can open a command prompt ("cmd.exe") and run
python from there. The python program will exit, but the command
window will stay and show the output of the program.

Amaury.




More information about the Python-list mailing list