mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-16 07:40:48 +01:00
resource getter: Change the order in which executable paths checked.
This commit is contained in:
parent
90ea2dd569
commit
6affc484f4
@ -151,10 +151,10 @@ class EnvironmentExecutableGetter(ExecutableGetter):
|
|||||||
|
|
||||||
def get(self, resource, **kwargs):
|
def get(self, resource, **kwargs):
|
||||||
paths = [
|
paths = [
|
||||||
os.path.join(settings.environment_root, 'bin',
|
|
||||||
resource.platform, resource.filename),
|
|
||||||
os.path.join(resource.owner.dependencies_directory, 'bin',
|
os.path.join(resource.owner.dependencies_directory, 'bin',
|
||||||
resource.platform, resource.filename),
|
resource.platform, resource.filename),
|
||||||
|
os.path.join(settings.environment_root, 'bin',
|
||||||
|
resource.platform, resource.filename),
|
||||||
]
|
]
|
||||||
for path in paths:
|
for path in paths:
|
||||||
if os.path.isfile(path):
|
if os.path.isfile(path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user