diff options
author | grbd <garlicbready@googlemail.com> | 2017-06-27 21:24:55 (GMT) |
---|---|---|
committer | grbd <garlicbready@googlemail.com> | 2017-06-27 21:24:55 (GMT) |
commit | fe8669695dad03dfe0c9e8b322d3ec86d8301229 (patch) | |
tree | 1e620107f8be3b864ee4af3092bc0912046d9afe /src/engine | |
parent | e8f5ebd9ec594fa09dd691750abc96220cc1a83b (diff) | |
download | SCons-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__.py | 2 |
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: |