2021-09-02 17:12:14 +02:00
|
|
|
@echo off
|
2021-12-22 21:56:57 +01:00
|
|
|
cd /D %~dp0
|
2022-10-23 14:10:44 +02:00
|
|
|
SET CONDA_SHLVL=
|
|
|
|
|
2021-09-02 17:12:14 +02:00
|
|
|
TITLE CMD for KoboldAI Runtime
|
|
|
|
SET /P M=<loader.settings
|
|
|
|
IF %M%==1 GOTO drivemap
|
|
|
|
IF %M%==2 GOTO subfolder
|
2022-01-13 23:52:21 +01:00
|
|
|
IF %M%==3 GOTO drivemap_B
|
2021-09-02 17:12:14 +02:00
|
|
|
|
|
|
|
:subfolder
|
2021-12-22 21:56:57 +01:00
|
|
|
SET TEMP=%~DP0MINICONDA3
|
|
|
|
SET TMP=%~DP0MINICONDA3
|
2021-09-02 17:12:14 +02:00
|
|
|
call miniconda3\condabin\activate
|
2022-04-10 14:24:43 +02:00
|
|
|
cmd /k "%*"
|
2021-09-02 17:12:14 +02:00
|
|
|
|
|
|
|
:drivemap
|
|
|
|
subst K: miniconda3 >nul
|
2021-12-22 21:56:57 +01:00
|
|
|
SET TEMP=K:\
|
|
|
|
SET TMP=K:\
|
2021-09-02 17:12:14 +02:00
|
|
|
call K:\python\condabin\activate
|
2022-04-10 14:24:43 +02:00
|
|
|
cmd /k "%*"
|
2022-01-13 23:52:21 +01:00
|
|
|
|
|
|
|
: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 "%*"
|