summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorgrbd <garlicbready@googlemail.com>2017-06-14 01:08:48 (GMT)
committergrbd <garlicbready@googlemail.com>2017-06-14 01:08:48 (GMT)
commite38f013a4006c6734d57057258b96ce1367554f0 (patch)
tree7b69feb6f17d4282ed2e01c7b3ca287ce680e597 /src/engine
parent23433f501b055457cc82ed8536af48cd08ebf219 (diff)
downloadSCons-e38f013a4006c6734d57057258b96ce1367554f0.zip
SCons-e38f013a4006c6734d57057258b96ce1367554f0.tar.gz
SCons-e38f013a4006c6734d57057258b96ce1367554f0.tar.bz2
Fix the loading of tools where the tool is a package instead of a module
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/SCons/Tool/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/engine/SCons/Tool/__init__.py b/src/engine/SCons/Tool/__init__.py
index e15c2f3..7eac0e0 100644
--- a/src/engine/SCons/Tool/__init__.py
+++ b/src/engine/SCons/Tool/__init__.py
@@ -189,6 +189,7 @@ class Tool(object):
if debug: print("file_Path:%s FOUND"%file_path)
break
elif os.path.isdir(file_package):
+ file_package = os.path.join(file_package, '__init__.py')
spec = importlib.util.spec_from_file_location(self.name, file_package)
if debug: print("PACKAGE:%s Found"%file_package)
break