diff --git a/foreign_cc/private/framework/toolchains/macos_commands.bzl b/foreign_cc/private/framework/toolchains/macos_commands.bzl index 2fc4b6478..2a14b48fb 100644 --- a/foreign_cc/private/framework/toolchains/macos_commands.bzl +++ b/foreign_cc/private/framework/toolchains/macos_commands.bzl @@ -261,7 +261,7 @@ def replace_symlink(file): # as `readlink` is. return """\ if [[ -L "{file}" ]]; then - target="$(python -c "import os; print(os.path.realpath('{file}'))")" + target="$(python3 -c "import os; print(os.path.realpath('{file}'))")" rm "{file}" && cp -a "${{target}}" "{file}" fi """.format(file = file)