summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons
diff options
context:
space:
mode:
authorgrbd <garlicbready@googlemail.com>2017-06-14 18:07:44 (GMT)
committergrbd <garlicbready@googlemail.com>2017-06-14 18:07:44 (GMT)
commit87649e791c9241c2bf6149a16d780d525016afed (patch)
tree04b796b988de24e8c6fe4bc6564cc6154426a020 /src/engine/SCons
parenta96ff49dee3669b25888e138916b6bb06c6dc363 (diff)
downloadSCons-87649e791c9241c2bf6149a16d780d525016afed.zip
SCons-87649e791c9241c2bf6149a16d780d525016afed.tar.gz
SCons-87649e791c9241c2bf6149a16d780d525016afed.tar.bz2
Additional fix for nested tools under python2
Diffstat (limited to 'src/engine/SCons')
-rw-r--r--src/engine/SCons/Tool/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/__init__.py b/src/engine/SCons/Tool/__init__.py
index 876b1d2..e5b4b05 100644
--- a/src/engine/SCons/Tool/__init__.py
+++ b/src/engine/SCons/Tool/__init__.py
@@ -145,7 +145,8 @@ class Tool(object):
if file:
file.close()
except ImportError as e:
- if str(e)!="No module named %s"%self.name:
+ splitname = self.name.split('.')
+ if str(e)!="No module named %s"%splitname[0]:
raise SCons.Errors.EnvironmentError(e)
try:
import zipimport