diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-05-13 20:12:14 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-05-13 20:12:14 (GMT) |
commit | b8ba51c52564ddf72a4f3dc229c35e081937aafa (patch) | |
tree | 22167df6121b24fee7594b07790d7740993ac5cf | |
parent | 0a5aa629ffffda4aa6b960399ff19d59b6b76dd6 (diff) | |
download | SCons-b8ba51c52564ddf72a4f3dc229c35e081937aafa.zip SCons-b8ba51c52564ddf72a4f3dc229c35e081937aafa.tar.gz SCons-b8ba51c52564ddf72a4f3dc229c35e081937aafa.tar.bz2 |
Restore deleted function _scons_file() in win32.py.
This is causing most tests to fail in win32.
See if this resolves.
-rw-r--r-- | src/engine/SCons/Platform/win32.py | 7 |
1 files changed, 7 insertions, 0 deletions
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()), |