Problem to display python winexe console output on "ShowDetails" of Installation pag
I am attaching a python executable with NSIS. The runtime prints of python's windows executable is needed to be outputed on the showdetails field of NSIS's Installation Page. We are using ExecDos dll, plugins to display runtime output of python's windows executable (hello.exe). The code snippet is as follows:
ExecDos::exec /NOUNLOAD /ASYNC /DETAILED /TIMEOUT=10000 "hello.exe"
where hello.exe is window's executable of hello.py,
import os, time, sys
print "something is running ....."
x = WConio.wherex()
y = WConio.wherey()
"Console window" Output of above hello.exe is:
something is running ...... ok
But when hello exe is used in NSIS, the display looks like this:
something is running .......
My intent is to get the print like as shown for Console window, ie 'ok' on the same line. Can anyone suggest what I am doing wrong? NOTE that when I use the ',' after the first print, the string is buffered even if I do a flush (as sys.stdout.flush()).