Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit eb6f3c9

Browse files
morambrocopybara-github
authored andcommitted
Use the correct pyenv path in Kokoro macOS
PiperOrigin-RevId: 622275210
1 parent 4738fc3 commit eb6f3c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kokoro/testutils/install_python3.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ install_python3() {
3939
python_version="${1:-${DEFAULT_PYTHON_VERSION}}"
4040
# Update the list of Python versions.
4141
(
42-
cd /home/kbuilder/.pyenv/plugins/python-build/../..
42+
# The macOS image exports a PYENV_ROOT env variable.
43+
cd "${PYENV_ROOT:-"${HOME}/.pyenv"}"
4344
git pull
4445
)
4546
# Install Python.

0 commit comments

Comments
 (0)