diff --git a/devlib/target.py b/devlib/target.py index 8643f13..ddf2f58 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -385,6 +385,9 @@ class Target(object): def execute(self, command, timeout=None, check_exit_code=True, as_root=False, strip_colors=True, will_succeed=False): + # Ensure to use deployed command when availables + if self.executables_directory: + command = "PATH={}:$PATH && {}".format(self.executables_directory, command) return self.conn.execute(command, timeout=timeout, check_exit_code=check_exit_code, as_root=as_root, strip_colors=strip_colors, will_succeed=will_succeed)