mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00: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:
parent
ed74ae6654
commit
ed9dcdedd7
@ -458,6 +458,13 @@ class MetaConfiguration(Configuration):
|
|||||||
specified when invoking a run.
|
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}
|
configuration = {cp.name: cp for cp in config_points}
|
||||||
|
|
||||||
@ -483,6 +490,10 @@ class MetaConfiguration(Configuration):
|
|||||||
if user_directory:
|
if user_directory:
|
||||||
self.set('user_directory', 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)
|
self.plugin_packages = copy(self.core_plugin_packages)
|
||||||
if os.path.isfile(self.additional_packages_file):
|
if os.path.isfile(self.additional_packages_file):
|
||||||
with open(self.additional_packages_file) as fh:
|
with open(self.additional_packages_file) as fh:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user