diff options
author | grbd <garlicbready@googlemail.com> | 2017-06-14 18:07:44 (GMT) |
---|---|---|
committer | grbd <garlicbready@googlemail.com> | 2017-06-14 18:07:44 (GMT) |
commit | 87649e791c9241c2bf6149a16d780d525016afed (patch) | |
tree | 04b796b988de24e8c6fe4bc6564cc6154426a020 /src/engine/SCons | |
parent | a96ff49dee3669b25888e138916b6bb06c6dc363 (diff) | |
download | SCons-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__.py | 3 |
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 |