diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-05-08 17:21:42 -0700 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-05-08 17:21:42 -0700 |
commit | 3bc1c459c9aaff4829aa11b55075a184c47bd376 (patch) | |
tree | d2064c372799de3984e564ffbbebbd256d12379a /QMTest | |
parent | d7236742fd0a893a6a1d1ec761302735f6daec8e (diff) | |
download | scons-3bc1c459c9aaff4829aa11b55075a184c47bd376.tar.gz |
Guard checking for subprocess.mswindows by checking if on win32 platform
Diffstat (limited to 'QMTest')
-rw-r--r-- | QMTest/TestCmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py index f8c4e69e..8cb6fb96 100644 --- a/QMTest/TestCmd.py +++ b/QMTest/TestCmd.py @@ -658,7 +658,7 @@ except AttributeError: PIPE = subprocess.PIPE -if subprocess.mswindows: +if sys.platform == 'win32' and subprocess.mswindows: try: from win32file import ReadFile, WriteFile from win32pipe import PeekNamedPipe @@ -720,7 +720,7 @@ class Popen(subprocess.Popen): getattr(self, which).close() setattr(self, which, None) - if subprocess.mswindows: + if sys.platform == 'win32' and subprocess.mswindows: def send(self, input): if not self.stdin: return None |