summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorgrbd <garlicbready@googlemail.com>2017-06-27 21:24:55 (GMT)
committergrbd <garlicbready@googlemail.com>2017-06-27 21:24:55 (GMT)
commitfe8669695dad03dfe0c9e8b322d3ec86d8301229 (patch)
tree1e620107f8be3b864ee4af3092bc0912046d9afe /src/engine
parente8f5ebd9ec594fa09dd691750abc96220cc1a83b (diff)
downloadSCons-fe8669695dad03dfe0c9e8b322d3ec86d8301229.zip
SCons-fe8669695dad03dfe0c9e8b322d3ec86d8301229.tar.gz
SCons-fe8669695dad03dfe0c9e8b322d3ec86d8301229.tar.bz2
Added support for relative imports within tools for python3 and tests for relative imports
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/SCons/Tool/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/__init__.py b/src/engine/SCons/Tool/__init__.py
index e5b4b05..80a16f5 100644
--- a/src/engine/SCons/Tool/__init__.py
+++ b/src/engine/SCons/Tool/__init__.py
@@ -225,7 +225,7 @@ class Tool(object):
# Not sure what to do in the case that there already
# exists sys.modules[self.name] but the source file is
# different.. ?
- spec.loader.exec_module(module)
+ module = spec.loader.load_module(spec.name)
sys.modules[found_name] = module
if add_to_scons_tools_namespace: