py2exe command line window problem

Prashant Singh prashsingh at yahoo.com
Wed Jul 23 12:03:15 EDT 2003


Klitos Kyriacou wrote:
> 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

That was it. I replaced the os.system() call with a call to os.spawnl() 
and now the console window doesn't show up.

Thanks a lot,
prashant.





More information about the Python-list mailing list