[PATCH] Issue 3832 - STARTF_USESHOWWINDOW not available on WinNT Python 2.6.6

Siddharth Agarwal sid0 at fb.com
Wed Feb 20 11:04:07 CST 2013

On 02/19/2013 10:03 PM, Steve Barnes wrote:
> Personally I am never comfortable with adding mystery hard coded 
> values nor with sending undocumented - as in not a part of the user 
> interface flags to a library call.

It isn't a mystery or undocumented if it's on MSDN. You could do


startupinfo.dwFlags |= STARTF_USESHOWWINDOW

> The way that I suggested will use the flag as it is if it available 
> and ignore it if it is not.

The flag is always available, it just isn't always defined on the 
subprocess module.

More information about the Mercurial-devel mailing list