Installer: Use absolute Python path in Windows batch scripts

This commit is contained in:
oobabooga 2026-03-05 21:56:01 -08:00
parent f9ed8820de
commit 6d7018069c
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ set "CUDA_HOME=%CUDA_PATH%"
call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" activate "%INSTALL_ENV_DIR%" || ( echo. && echo Miniforge hook not found. && goto end )
@rem setup installer env
call python one_click.py %*
call "%INSTALL_ENV_DIR%\python.exe" one_click.py %*
@rem below are functions for the script next line skips these during normal execution
goto end

View file

@ -28,7 +28,7 @@ set "CUDA_HOME=%CUDA_PATH%"
call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" activate "%INSTALL_ENV_DIR%" || ( echo. && echo Miniforge hook not found. && goto end )
@rem update installer env
call python one_click.py --update-wizard && (
call "%INSTALL_ENV_DIR%\python.exe" one_click.py --update-wizard && (
echo.
echo Have a great day!
)