mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-31 22:50:15 +01:00
15 lines
428 B
Batchfile
15 lines
428 B
Batchfile
|
@echo off
|
||
|
|
||
|
set MAMBA_ROOT_PREFIX=%cd%\installer_files\mamba
|
||
|
set INSTALL_ENV_DIR=%cd%\installer_files\env
|
||
|
|
||
|
if not exist "%MAMBA_ROOT_PREFIX%\Scripts\activate.bat" (
|
||
|
call "%MAMBA_ROOT_PREFIX%\micromamba.exe" shell hook >nul 2>&1
|
||
|
)
|
||
|
call "%MAMBA_ROOT_PREFIX%\condabin\mamba_hook.bat" || ( echo Micromamba hook not found. && goto end )
|
||
|
call micromamba activate "%INSTALL_ENV_DIR%" || goto end
|
||
|
|
||
|
cmd /k "%*"
|
||
|
|
||
|
:end
|
||
|
pause
|