mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-23 02:58:35 +00:00
revent: fix resource resolution when dependency location does not exist.
This commit is contained in:
parent
26dfe97ffd
commit
782d4501cd
@ -320,6 +320,7 @@ class RemoteFilerGetter(ResourceGetter):
|
|||||||
for candidate in os.listdir(alternate_location):
|
for candidate in os.listdir(alternate_location):
|
||||||
if candidate.lower() == filename.lower():
|
if candidate.lower() == filename.lower():
|
||||||
return os.path.join(alternate_location, candidate)
|
return os.path.join(alternate_location, candidate)
|
||||||
|
if os.path.isdir(location):
|
||||||
for candidate in os.listdir(location):
|
for candidate in os.listdir(location):
|
||||||
if candidate.lower() == filename.lower():
|
if candidate.lower() == filename.lower():
|
||||||
return os.path.join(location, candidate)
|
return os.path.join(location, candidate)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user