Skip to content

Commit 2d021be

Browse files
committed
add some debug code
1 parent 4cf24e0 commit 2d021be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/private/runtime_env_toolchain_interpreter.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ if [ -e "$self_dir/pyvenv.cfg" ] || [ -e "$self_dir/../pyvenv.cfg" ]; then
6868
;;
6969
esac
7070

71+
if [ ! -e "$PYTHON_BIN" ]; then
72+
die "ERROR: Python interpreter does not exist: $PYTHON_BIN"
73+
fi
7174
# PYTHONEXECUTABLE is also used because `exec -a` doesn't fully trick the
7275
# pyenv wrappers.
7376
# NOTE: The PYTHONEXECUTABLE envvar only works for non-Mac starting in Python 3.11

0 commit comments

Comments
 (0)