mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 03:12:34 +01:00
Updates to pluggins to match the new plugin loader
This commit is contained in:
@@ -296,7 +296,7 @@ def create_workload(name, kind='basic', where='local', check_name=True, **kwargs
|
||||
|
||||
class_name = get_class_name(name)
|
||||
if where == 'local':
|
||||
workload_dir = _d(os.path.join(settings.environment_root, 'workloads', name))
|
||||
workload_dir = _d(os.path.join(settings.user_directory, 'workloads', name))
|
||||
else:
|
||||
workload_dir = _d(os.path.join(where, name))
|
||||
|
||||
|
@@ -26,6 +26,7 @@ from wlauto.utils.log import add_log_file
|
||||
from wlauto.core.configuration import RunConfiguration
|
||||
from wlauto.core import pluginloader
|
||||
|
||||
|
||||
class RunCommand(Command):
|
||||
|
||||
name = 'run'
|
||||
@@ -96,7 +97,7 @@ class RunCommand(Command):
|
||||
basename = 'config_'
|
||||
for file_number, path in enumerate(settings.config_paths, 1):
|
||||
file_ext = os.path.splitext(path)[1]
|
||||
shutil.copy(path, os.path.join(meta_directory,
|
||||
shutil.copy(path, os.path.join(config.meta_directory,
|
||||
basename + str(file_number) + file_ext))
|
||||
|
||||
executor = Executor(config)
|
||||
|
Reference in New Issue
Block a user