2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

Let ConfigurationContext.load description match more closely Context.load

This commit is contained in:
Thomas Nagy 2017-10-20 20:07:29 +02:00
parent ec356383e2
commit 2928db1c8c
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -223,12 +223,12 @@ class ConfigurationContext(Context.Context):
tmpenv = self.all_envs[key]
tmpenv.store(os.path.join(self.cachedir.abspath(), key + Build.CACHE_SUFFIX))
def load(self, input, tooldir=None, funs=None, with_sys_path=True, cache=False):
def load(self, tool_list, tooldir=None, funs=None, with_sys_path=True, cache=False):
"""
Load Waf tools, which will be imported whenever a build is started.
:param input: waf tools to import
:type input: list of string
:param tool_list: waf tools to import
:type tool_list: list of string
:param tooldir: paths for the imports
:type tooldir: list of string
:param funs: functions to execute from the waf tools
@ -237,7 +237,7 @@ class ConfigurationContext(Context.Context):
:type cache: bool
"""
tools = Utils.to_list(input)
tools = Utils.to_list(tool_list)
if tooldir:
tooldir = Utils.to_list(tooldir)
for tool in tools: