[Windows] Invalid handle with subprocesses with py2exe
Bug #543762 reported by
Stani
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phatch |
Fix Released
|
Critical
|
Stani |
Bug Description
Problem and solution are described here:
http://
To post a comment you must log in.
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