1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

target: Make sure subprocesses of Target.execute() inherit PATH

Make sure that the subprocesses of the command that is spawned see the same
value of PATH env var, so that the tools installed by devlib are available from
scripts that could be started as well.
This commit is contained in:
Douglas RAILLARD 2019-09-03 14:24:08 +01:00 committed by Marc Bonnici
parent 9c86174ff5
commit aa62a52ee3

View File

@ -396,7 +396,7 @@ class Target(object):
# Ensure to use deployed command when availables # Ensure to use deployed command when availables
if self.executables_directory: if self.executables_directory:
command = "PATH={}:$PATH && {}".format(self.executables_directory, command) command = "export PATH={}:$PATH && {}".format(self.executables_directory, command)
return self.conn.execute(command, timeout=timeout, return self.conn.execute(command, timeout=timeout,
check_exit_code=check_exit_code, as_root=as_root, check_exit_code=check_exit_code, as_root=as_root,