diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-05-09 00:21:42 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-05-09 00:21:42 (GMT) |
commit | c591da06c1a18873d09323d6700d1469120ad27d (patch) | |
tree | d2064c372799de3984e564ffbbebbd256d12379a /QMTest | |
parent | d86a8cf1f8e5aadca9bcd6b7481ab15eccc0530d (diff) | |
download | SCons-c591da06c1a18873d09323d6700d1469120ad27d.zip SCons-c591da06c1a18873d09323d6700d1469120ad27d.tar.gz SCons-c591da06c1a18873d09323d6700d1469120ad27d.tar.bz2 |
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 f8c4e69..8cb6fb9 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 |