I have a wxPython program which I can't seem to run from either using
pythonw but works fine when I run it with python.exe (it then shows a
command line window). The program does use print and debug statements,
but I'm not sure if this could be the problem. Anyone know?
Yes it is possible. A Windows program that doesn't have a console does not have the stdio files available to it. So, IIRC, depending on the version of the C runtime library is is possible that the program will block when trying to write to stdout or stderr. If you assign sys.stdout and sys.stderr to some other file-like objects then you should be okay.
···
On 5/2/10 4:37 AM, BigPilot wrote:
I have a wxPython program which I can't seem to run from either using
pythonw but works fine when I run it with python.exe (it then shows a
command line window). The program does use print and debug statements,
but I'm not sure if this could be the problem. Anyone know?