1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +01:00

fw/config: add extra_plugin_paths setting

Add extra_plugin_paths setting which gets populated from WA_PLUGIN_PATHS
environment variable. This allows specifying additional locations to
scan for WA plugins.
This commit is contained in:
Sergei Trofimov 2018-04-10 10:13:58 +01:00 committed by Marc Bonnici
parent ed74ae6654
commit ed9dcdedd7

View File

@ -458,6 +458,13 @@ class MetaConfiguration(Configuration):
specified when invoking a run.
""",
),
ConfigurationPoint(
'extra_plugin_paths',
kind=list_of_strings,
description="""
A list of additional paths to scan for plugins.
""",
),
]
configuration = {cp.name: cp for cp in config_points}
@ -483,6 +490,10 @@ class MetaConfiguration(Configuration):
if user_directory:
self.set('user_directory', user_directory)
extra_plugin_paths = environ.pop('WA_PLUGIN_PATHS', '')
if extra_plugin_paths:
self.set('extra_plugin_paths', extra_plugin_paths.split(os.pathsep))
self.plugin_packages = copy(self.core_plugin_packages)
if os.path.isfile(self.additional_packages_file):
with open(self.additional_packages_file) as fh: