summaryrefslogtreecommitdiffstats
path: root/SCons/Environment.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2021-05-24 13:34:48 (GMT)
committerMats Wichmann <mats@linux.com>2021-05-24 13:37:58 (GMT)
commitef0b9aae9604f07104d6daf11e94bd844b7cf39f (patch)
tree2934e54e75a255c64bd43df41376f784022bbefa /SCons/Environment.py
parent91aa64d0d5d7803d9fe13e12554988253456da76 (diff)
downloadSCons-ef0b9aae9604f07104d6daf11e94bd844b7cf39f.zip
SCons-ef0b9aae9604f07104d6daf11e94bd844b7cf39f.tar.gz
SCons-ef0b9aae9604f07104d6daf11e94bd844b7cf39f.tar.bz2
Tweak env.Tool documentation for clarity
Review comments pointed out some issues with the exsiting change proposal, rearranged and reworded some things. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/Environment.py')
-rw-r--r--SCons/Environment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/SCons/Environment.py b/SCons/Environment.py
index 2f2c8b2..4868e75 100644
--- a/SCons/Environment.py
+++ b/SCons/Environment.py
@@ -1869,13 +1869,13 @@ class Base(SubstitutionEnvironment):
def _find_toolpath_dir(self, tp):
return self.fs.Dir(self.subst(tp)).srcnode().get_abspath()
- def Tool(self, tool, toolpath=None, **kw) -> SCons.Tool.Tool:
+ def Tool(self, tool, toolpath=None, **kwargs) -> SCons.Tool.Tool:
if is_String(tool):
tool = self.subst(tool)
if toolpath is None:
toolpath = self.get('toolpath', [])
toolpath = list(map(self._find_toolpath_dir, toolpath))
- tool = SCons.Tool.Tool(tool, toolpath, **kw)
+ tool = SCons.Tool.Tool(tool, toolpath, **kwargs)
tool(self)
return tool