python - twisted reactor.spawnProcess opens an unwanted console when cx_freeze'd -


basically it's in title, when run code console (on windows) child process runs without opening console, when run code cx_freeze'd app console opens.

i found old thread suggested use freeconsole(), flash console on screen blink can live it, unfortunately if understood correctly should called child process.

http://twistedmatrix.com/pipermail/twisted-python/2007-february/014738.html

i found ticket (7yo) on re-factoring of whole spawnprocess on windows apparently never happened:

http://twistedmatrix.com/trac/ticket/2415

i have no control on code of child process, doing there unfortunately not option, if did process i'm spawning it's console app , believe freeconsole() not called there or process terminate.

this possibly bug in twisted, possibly bug in cx_freeze.

what happens when run code gui python, without cx_freeze involved? should able test if have python installed putting code .pyw file , double-clicking on in explorer.

if still pops console window when run subprocess, totally bug in twisted , should file such. eric's answer in mailing list message wrong; if want spawn processes spawnprocess shouldn't popping random console windows.

if click-on-a-.pyw launching method doesn't cause console window pop up, it's way cx_freeze has constructed executable , might want @ it.

on unix, have platform-specific usepty, makes sense expand spawnprocess platform-specific useconsole analogous windows. this later message in thread suggests implementation strategy, please file ticket. let's-redo-everything ticket ambitious fix 1 issue.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -