From b8ba51c52564ddf72a4f3dc229c35e081937aafa Mon Sep 17 00:00:00 2001 From: William Deegan Date: Fri, 13 May 2016 16:12:14 -0400 Subject: Restore deleted function _scons_file() in win32.py. This is causing most tests to fail in win32. See if this resolves. --- src/engine/SCons/Platform/win32.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/SCons/Platform/win32.py b/src/engine/SCons/Platform/win32.py index 8ba8218..269007d 100644 --- a/src/engine/SCons/Platform/win32.py +++ b/src/engine/SCons/Platform/win32.py @@ -63,6 +63,13 @@ else: _builtin_file = file _builtin_open = open + class _scons_file(_builtin_file): + def __init__(self, *args, **kw): + _builtin_file.__init__(self, *args, **kw) + win32api.SetHandleInformation(msvcrt.get_osfhandle(self.fileno()), + win32con.HANDLE_FLAG_INHERIT, 0) + + def _scons_open(*args, **kw): fp = _builtin_open(*args, **kw) win32api.SetHandleInformation(msvcrt.get_osfhandle(fp.fileno()), -- cgit v0.12