diff options
Diffstat (limited to 'src/engine/SCons/compat/_scons_subprocess.py')
-rw-r--r-- | src/engine/SCons/compat/_scons_subprocess.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/SCons/compat/_scons_subprocess.py b/src/engine/SCons/compat/_scons_subprocess.py index df7e702..4cb9e30 100644 --- a/src/engine/SCons/compat/_scons_subprocess.py +++ b/src/engine/SCons/compat/_scons_subprocess.py @@ -373,7 +373,13 @@ class CalledProcessError(Exception): if mswindows: - import threading + try: + import threading + except ImportError: + # SCons: the threading module is only used by the communicate() + # method, which we don't actually use, so don't worry if we + # can't import it. + pass import msvcrt if 0: # <-- change this to use pywin32 instead of the _subprocess driver import pywintypes |