diff options
-rw-r--r-- | buildstream/sandbox/sandbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/sandbox/sandbox.py b/buildstream/sandbox/sandbox.py index 80a309c0c..9fe1194bb 100644 --- a/buildstream/sandbox/sandbox.py +++ b/buildstream/sandbox/sandbox.py @@ -316,11 +316,11 @@ class Sandbox(): def _has_command(self, command, env=None): if os.path.isabs(command): return os.path.exists(os.path.join( - self.get_directory(), command.lstrip(os.sep))) + self._root, command.lstrip(os.sep))) for path in env.get('PATH').split(':'): if os.path.exists(os.path.join( - self.get_directory(), path.lstrip(os.sep), command)): + self._root, path.lstrip(os.sep), command)): return True return False |