mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2024-12-12 08:36:28 +01:00
9f86ca5be5
Conda breaks if the username has spaces when it tries to use temp, added a workaround that forces our directory to be used as temp for kobold.
19 lines
330 B
Batchfile
19 lines
330 B
Batchfile
@echo off
|
|
cd /D %~dp0
|
|
TITLE CMD for KoboldAI Runtime
|
|
SET /P M=<loader.settings
|
|
IF %M%==1 GOTO drivemap
|
|
IF %M%==2 GOTO subfolder
|
|
|
|
:subfolder
|
|
SET TEMP=%~DP0MINICONDA3
|
|
SET TMP=%~DP0MINICONDA3
|
|
call miniconda3\condabin\activate
|
|
cmd /k
|
|
|
|
:drivemap
|
|
subst K: miniconda3 >nul
|
|
SET TEMP=K:\
|
|
SET TMP=K:\
|
|
call K:\python\condabin\activate
|
|
cmd /k |