mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
resource getter: look for executable resource in correct loction.
Look in the bin/ directory under resource owner's dependencies directory as well as general dependencies bin.
This commit is contained in:
parent
df6d1f1c2b
commit
90ea2dd569
@ -150,9 +150,15 @@ class EnvironmentExecutableGetter(ExecutableGetter):
|
||||
name = 'env_exe_getter'
|
||||
|
||||
def get(self, resource, **kwargs):
|
||||
path = os.path.join(settings.environment_root, 'bin', resource.platform, resource.filename)
|
||||
if os.path.isfile(path):
|
||||
return path
|
||||
paths = [
|
||||
os.path.join(settings.environment_root, 'bin',
|
||||
resource.platform, resource.filename),
|
||||
os.path.join(resource.owner.dependencies_directory, 'bin',
|
||||
resource.platform, resource.filename),
|
||||
]
|
||||
for path in paths:
|
||||
if os.path.isfile(path):
|
||||
return path
|
||||
|
||||
|
||||
class DependencyFileGetter(ResourceGetter):
|
||||
|
Loading…
x
Reference in New Issue
Block a user