Re: Win XP: How to hide command window for sub processes?

2009-11-04 Thread Rüdiger Ranft
klausfpga schrieb: On Oct 29, 11:25 am, Rüdiger Ranft _r...@web.de wrote: Thanks Ruediger, I'll try that immediately tomorrow, when working again on a windows host. Good to know, that the Python API supports this. though this feature was not that easy to be found in the doc. Well,

Win XP: How to hide command window for sub processes?

2009-10-29 Thread klausfpga
Hi, I have a Python script which wants to start a subprocess and wait for it to finish. However I would like to have NO command window popping up during execution. My main Python script is started with the .pyw suffix, thus I got rid of the main console and I just see my GUI. So far I tried

Re: Win XP: How to hide command window for sub processes?

2009-10-29 Thread Rüdiger Ranft
klausfpga schrieb: Hi, I have a Python script which wants to start a subprocess and wait for it to finish. However I would like to have NO command window popping up during execution. You need to specify the hide parameter for windows. import subprocess kwargs = {} if

Re: Win XP: How to hide command window for sub processes?

2009-10-29 Thread Chris Rebert
On Thu, Oct 29, 2009 at 3:25 AM, Rüdiger Ranft _r...@web.de wrote: klausfpga schrieb: Hi, I have a Python script which wants to start a subprocess and wait for it to finish. However I would like to have NO command window popping up during execution. You need to specify the hide parameter

Re: Win XP: How to hide command window for sub processes?

2009-10-29 Thread Martin P. Hellwig
Chris Rebert wrote: On Thu, Oct 29, 2009 at 3:25 AM, Rüdiger Ranft _r...@web.de wrote: klausfpga schrieb: Hi, I have a Python script which wants to start a subprocess and wait for it to finish. However I would like to have NO command window popping up during execution. You need to specify

Re: Win XP: How to hide command window for sub processes?

2009-10-29 Thread Chris Rebert
On Thu, Oct 29, 2009 at 4:37 AM, Martin P. Hellwig martin.hell...@dcuktec.org wrote: Chris Rebert wrote: On Thu, Oct 29, 2009 at 3:25 AM, Rüdiger Ranft _r...@web.de wrote: klausfpga schrieb: Hi, I have a Python script which wants to start a subprocess and wait for it to finish. However

Re: Win XP: How to hide command window for sub processes?

2009-10-29 Thread Martin P. Hellwig
Chris Rebert wrote: cut Except for here: http://msdn.microsoft.com/en-us/library/ms682425%28VS.85%29.aspx I was referring to the following bits of the subprocess module used in the above code: Me too actually :-) subprocess.mswindows subprocess.STARTUPINFO() subprocess.STARTF_USESHOWWINDOW

Re: Win XP: How to hide command window for sub processes?

2009-10-29 Thread Chris Rebert
On Thu, Oct 29, 2009 at 4:57 AM, Martin P. Hellwig martin.hell...@dcuktec.org wrote: Chris Rebert wrote: cut Except for here: http://msdn.microsoft.com/en-us/library/ms682425%28VS.85%29.aspx I was referring to the following bits of the subprocess module used in the above code: Me too

Re: Win XP: How to hide command window for sub processes?

2009-10-29 Thread klausfpga
On Oct 29, 11:25 am, Rüdiger Ranft _r...@web.de wrote: klausfpga schrieb: Hi, I have a Python script which wants to start a subprocess and wait for it to finish. However I would like to have NO command window popping up during execution. You need to specify the hide parameter for