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
lib/system.py
# call pipes www.py2exe. org/index. cgi/Py2ExeSubpr ocessInteractio ns STDERR_ PIPES[' creationflags' ] = win32process. CREATE_ NO_WINDOW PIPES[' creationflags' ] = win32process. CREATE_ NO_WINDOW
# see http://
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_
NO_
except ImportError:
pass