KoboldAI-Client/commandline.bat

29 lines
492 B
Batchfile
Raw Normal View History

@echo off
cd /D %~dp0
2022-10-23 14:10:44 +02:00
SET CONDA_SHLVL=
TITLE CMD for KoboldAI Runtime
SET /P M=<loader.settings
IF %M%==1 GOTO drivemap
IF %M%==2 GOTO subfolder
IF %M%==3 GOTO drivemap_B
:subfolder
SET TEMP=%~DP0MINICONDA3
SET TMP=%~DP0MINICONDA3
call miniconda3\condabin\activate
2022-04-10 14:24:43 +02:00
cmd /k "%*"
:drivemap
subst K: miniconda3 >nul
SET TEMP=K:\
SET TMP=K:\
call K:\python\condabin\activate
2022-04-10 14:24:43 +02:00
cmd /k "%*"
:drivemap_B
subst B: miniconda3 >nul
SET TEMP=B:\
SET TMP=B:\
call B:\python\condabin\activate
2022-04-10 14:24:43 +02:00
cmd /k "%*"