py2exe command line window problem

Klitos Kyriacou google at
Wed Jul 23 14:56:31 CEST 2003

The fact that the console window shows it's running cmd.exe (the Windows
Command Processor) gives us a good clue. Not all console windows run cmd.exe,
so this is significant. Python's os.system function uses the shell specified
by the ComSpec environment variable (usually C:\WINNT\system32\cmd.exe) to
run the command given as an argument. Check if you are calling system() in
your Python script. If you are, you can be fairly certain that's what's
creating the console window.


More information about the Python-list mailing list