Fixed webui.cmd crash when having () in path. #1276 (#1279)

Co-authored-by: Dice <What is Email?>
This commit is contained in:
Victor Möller 2022-09-23 11:14:20 +02:00 committed by GitHub
parent 2a911049aa
commit 23d825221f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ call "%v_conda_path%\Scripts\activate.bat" "%v_conda_env_name%"
:PROMPT :PROMPT
set SETUPTOOLS_USE_DISTUTILS=stdlib set SETUPTOOLS_USE_DISTUTILS=stdlib
IF EXIST "models\ldm\stable-diffusion-v1\model.ckpt" ( IF EXIST "models\ldm\stable-diffusion-v1\model.ckpt" (
set PYTHONPATH=%~dp0 set "PYTHONPATH=%~dp0"
python scripts\relauncher.py python scripts\relauncher.py
) ELSE ( ) ELSE (
echo Your model file does not exist! Place it in 'models\ldm\stable-diffusion-v1' with the name 'model.ckpt'. echo Your model file does not exist! Place it in 'models\ldm\stable-diffusion-v1' with the name 'model.ckpt'.