mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2024-12-13 00:56:18 +01:00
3b42f31137
Pre-emptive change for people who may have existing K: drives. B: is never used unless its by programs like ours which is very rare. The installer now always installs as B:, but to maintain compatibility with older runtimes the scripts check if its K: or B:.
35 lines
663 B
Batchfile
35 lines
663 B
Batchfile
@echo off
|
|
cd /D %~dp0
|
|
TITLE KoboldAI - Server
|
|
SET /P M=<loader.settings
|
|
IF %M%==1 GOTO drivemap
|
|
IF %M%==2 GOTO subfolder
|
|
IF %M%==3 GOTO drivemap_B
|
|
|
|
:subfolder
|
|
ECHO Runtime launching in subfolder mode
|
|
SET TEMP=%~DP0MINICONDA3
|
|
SET TMP=%~DP0MINICONDA3
|
|
call miniconda3\condabin\activate
|
|
python aiserver.py %*
|
|
cmd /k
|
|
|
|
:drivemap
|
|
ECHO Runtime launching in K: drive mode
|
|
subst K: miniconda3 >nul
|
|
SET TEMP=K:\
|
|
SET TMP=K:\
|
|
call K:\python\condabin\activate
|
|
python aiserver.py %*
|
|
subst K: /D
|
|
cmd /k
|
|
|
|
:drivemap_B
|
|
ECHO Runtime launching in B: drive mode
|
|
subst B: miniconda3 >nul
|
|
SET TEMP=B:\
|
|
SET TMP=B:\
|
|
call B:\python\condabin\activate
|
|
python aiserver.py %*
|
|
subst B: /D
|
|
cmd /k |