py2exe command line window problem

Klitos Kyriacou google at klitos.org
Wed Jul 23 08:56:31 EDT 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.

Regards,
Klitos




More information about the Python-list mailing list