mirror of
https://github.com/oobabooga/textgen.git
synced 2026-07-23 11:20:54 -05:00
Installer: Use absolute Python path in Windows batch scripts
This commit is contained in:
@@ -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 )
|
call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" activate "%INSTALL_ENV_DIR%" || ( echo. && echo Miniforge hook not found. && goto end )
|
||||||
|
|
||||||
@rem setup installer env
|
@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
|
@rem below are functions for the script next line skips these during normal execution
|
||||||
goto end
|
goto end
|
||||||
|
|||||||
@@ -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 )
|
call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" activate "%INSTALL_ENV_DIR%" || ( echo. && echo Miniforge hook not found. && goto end )
|
||||||
|
|
||||||
@rem update installer env
|
@rem update installer env
|
||||||
call python one_click.py --update-wizard && (
|
call "%INSTALL_ENV_DIR%\python.exe" one_click.py --update-wizard && (
|
||||||
echo.
|
echo.
|
||||||
echo Have a great day!
|
echo Have a great day!
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user