@@ -146,7 +146,6 @@ if [[ "$IS_ZIPFILE" == "1" ]]; then
146146  mkdir -p " $( dirname $python_exe ) " 
147147  ln -s " $symlink_to "   " $python_exe " 
148148elif  [[ " $RECREATE_VENV_AT_RUNTIME "   ==  " 1"   ]];  then 
149- 
150149  if  [[ -n  " $RULES_PYTHON_EXTRACT_ROOT "   ]];  then 
151150    use_exec=1
152151    #  Use our runfiles path as a unique, reusable, location for the
@@ -169,13 +168,13 @@ elif [[ "$RECREATE_VENV_AT_RUNTIME" == "1" ]]; then
169168  if  [[ !  -e  " $python_exe "   ]];  then 
170169    if  [[ " $PYTHON_BINARY_ACTUAL "   ==  /*  ]];  then 
171170      #  An absolute path, i.e. platform runtime, e.g. /usr/bin/python3
172-       symlink_to =$PYTHON_BINARY_ACTUAL 
171+       python_exe_actual =$PYTHON_BINARY_ACTUAL 
173172    elif  [[ " $PYTHON_BINARY_ACTUAL "   ==  * /*  ]];  then 
174173      #  A runfiles-relative path
175-       symlink_to =" $RUNFILES_DIR /$PYTHON_BINARY_ACTUAL " 
174+       python_exe_actual =" $RUNFILES_DIR /$PYTHON_BINARY_ACTUAL " 
176175    else 
177176      #  A plain word, e.g. "python3". Symlink to where PATH leads
178-       symlink_to =$( which $PYTHON_BINARY_ACTUAL ) 
177+       python_exe_actual =$( which $PYTHON_BINARY_ACTUAL ) 
179178      #  Guard against trying to symlink to an empty value
180179      if  [[ $?  -ne  0 ]];  then 
181180        echo  >&2  " ERROR: Python to use not found on PATH: $PYTHON_BINARY_ACTUAL " 
@@ -202,13 +201,13 @@ elif [[ "$RECREATE_VENV_AT_RUNTIME" == "1" ]]; then
202201      {
203202        read  -r resolved_py_exe
204203        read  -r resolved_site_packages
205-       } <  <( " $symlink_to  "   -I << EOF 
204+       } <  <( " $python_exe_actual  "   -I << EOF 
206205import sys, site, os 
207206print(sys.executable) 
208207print(site.getsitepackages(["$venv "])[-1]) 
209208EOF 
210209) 
211-       symlink_to =" $resolved_py_exe " 
210+       python_exe_actual =" $resolved_py_exe " 
212211      runfiles_venv_site_packages=$runfiles_venv /$VENV_REL_SITE_PACKAGES 
213212      venv_site_packages=" $resolved_site_packages " 
214213    else 
218217    fi 
219218
220219    mkdir -p " $venv /bin" 
221-     ln -s " $symlink_to  "   " $python_exe " 
220+     ln -s " $python_exe_actual  "   " $python_exe " 
222221
223222    if  [[ !  -e  " $venv_site_packages "   ]];  then 
224223      mkdir -p $( dirname $venv_site_packages ) 
0 commit comments