Changed things around to allow Micromamba to work with paths containing spaces.
This commit is contained in:
parent
1e260544cd
commit
2e02d42682
4 changed files with 13 additions and 21 deletions
|
@ -7,11 +7,10 @@ cd /D "%~dp0"
|
|||
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" (
|
||||
if not exist "%MAMBA_ROOT_PREFIX%\condabin\micromamba.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
|
||||
call "%MAMBA_ROOT_PREFIX%\condabin\micromamba.bat" activate "%INSTALL_ENV_DIR%" || ( echo MicroMamba hook not found. && goto end )
|
||||
|
||||
cd text-generation-webui || goto end
|
||||
goto %TextOnly%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue