[Python-Dev] Console vs. GUI applications

Thomas Heller theller at python.net
Wed Sep 8 21:10:34 CEST 2004


"Martin v. Löwis" <martin at v.loewis.de> writes:

> Thomas Heller wrote:
>> It seems to be a flag in the exe header.  A quick google search turned
>> up this:
>> http://www.codeguru.com/Cpp/W-P/system/misc/article.php/c2897/
>
> Sure. However, if I do
>
> foo.py
>
> then some part of the system must determine that python.exe is
> to be invoked, and then must determine that this is a console
> binary. Does that all happen in cmd.exe?

I cannot answer this question (and I'm not the windows guru either;),
but using regmon from sysinternals shows that cmd.exe does more than 500
registry accesses before python.exe is finally started - so it *does* a
lot of work.

Thomas



More information about the Python-Dev mailing list