mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
target: fixed get_installed() on new targets
get_installed() looks in self.executables_directory for the binary. This may not exist on a target (this is created when setup() is invoked). This commit updated get_installed() to check whether target_directory exists first, avoiding the error.
This commit is contained in:
parent
961f9576e5
commit
b53245344b
@ -402,6 +402,7 @@ class Target(object):
|
|||||||
return self.path.join(path, name)
|
return self.path.join(path, name)
|
||||||
except TargetError:
|
except TargetError:
|
||||||
pass # directory does not exist or no executable premssions
|
pass # directory does not exist or no executable premssions
|
||||||
|
if self.file_exists(self.executables_directory):
|
||||||
if name in self.list_directory(self.executables_directory):
|
if name in self.list_directory(self.executables_directory):
|
||||||
return self.path.join(self.executables_directory, name)
|
return self.path.join(self.executables_directory, name)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user