Don't resolve symlink in resolve_executable_path(). (#6540)

This commit is contained in:
Edward Chen 2021-02-04 12:32:03 -08:00 committed by GitHub
parent aa31ba5774
commit 2ef792ae6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -481,7 +481,7 @@ def resolve_executable_path(command_or_path):
if executable_path is None:
raise BuildError("Failed to resolve executable path for "
"'{}'.".format(command_or_path))
return os.path.realpath(executable_path)
return os.path.abspath(executable_path)
def get_linux_distro():