diff options
Diffstat (limited to 'buildstream/sandbox/sandbox.py')
-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 cb6f43314..2159c0fef 100644 --- a/buildstream/sandbox/sandbox.py +++ b/buildstream/sandbox/sandbox.py @@ -525,11 +525,11 @@ class Sandbox(): # (bool): Whether a command exists inside the sandbox. def _has_command(self, command, env=None): if os.path.isabs(command): - return os.path.exists(os.path.join( + return os.path.lexists(os.path.join( self._root, command.lstrip(os.sep))) for path in env.get('PATH').split(':'): - if os.path.exists(os.path.join( + if os.path.lexists(os.path.join( self._root, path.lstrip(os.sep), command)): return True |