Comment 1 for bug 543762

Revision history for this message
Stani (stani) wrote :

lib/system.py

# call pipes
# see http://www.py2exe.org/index.cgi/Py2ExeSubprocessInteractions
NULL_PIPE = file('nul', 'a')
STDOUT_STDERR_PIPES = {
        'stdin': NULL_PIPE,
        'stdout': subprocess.PIPE,
        'stderr': subprocess.PIPE,
}
NO_PIPES = {
        'stdin': NULL_PIPE,
        'stdout': NULL_PIPE,
        'stderr': NULL_PIPE,
}
try:
    # prevent subprocesses from showing console windows
    import win32process
    STDOUT_STDERR_PIPES['creationflags'] = win32process.CREATE_NO_WINDOW
    NO_PIPES['creationflags'] = win32process.CREATE_NO_WINDOW
except ImportError:
    pass