Caution newbie question: python window to stay open ?
jim-on-linux
inq1ltd at verizon.net
Wed Nov 22 11:59:27 EST 2006
Michael,
put this at the top of your code. After the window
closes read the testLog.out file. It may give you
a clue as to what is happening.
sys.stdout = open('testLog.out', 'w')
jim-on-linux
http://www.inqvista.com
On Tuesday 21 November 2006 22:20, mkengel wrote:
> Caution: newbie question
>
> I am using python 2.4.3-11 on Windows XP.
> Problem: Python window closes immediately after
> executing a *.py file (e.g. containing a
> "print..." command. What do I have to do to
> keep it open to see the results ?
>
> "Interactive window" stays open.
>
> Thank you.
> Michael
More information about the Python-list
mailing list