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

Chris Rebert clp2 at rebertia.com
Thu Oct 29 13:37:12 CET 2009


On Thu, Oct 29, 2009 at 4:57 AM, Martin P. Hellwig
<martin.hellwig at 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 actually :-)
>
>> subprocess.mswindows
>> subprocess.STARTUPINFO()
>> subprocess.STARTF_USESHOWWINDOW
>> subprocess.SW_HIDE
>>
>> none of which are mentioned in the module's docs:
>> http://docs.python.org/dev/py3k/library/subprocess.html
>
> Since this is platform specific stuff I would argue that it has no business
> being repeated, although a link to where it is documented elsewhere would
> have been nice.

True, the Windows APIs are documented but it's not mentioned at all
that they're accessible in a certain form from subprocess.
Many other stdlib modules (e.g. `os` -
http://docs.python.org/library/os.html) include and list
platform-specific functions, I don't see why subprocess should be
different.

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list