diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-02 22:55:56 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-02 22:55:56 +0000 |
commit | e5fc7bb59c311e137cc54d15f96e3d3537c07429 (patch) | |
tree | db82384aa1e9a4034c0ac85a5482e88874c7c38d /webui.bat | |
parent | 0dca0db7ebeeb2e250bf0c443f1f5521846050a4 (diff) | |
download | stable-diffusion-webui-gfx803-e5fc7bb59c311e137cc54d15f96e3d3537c07429.tar.gz stable-diffusion-webui-gfx803-e5fc7bb59c311e137cc54d15f96e3d3537c07429.tar.bz2 stable-diffusion-webui-gfx803-e5fc7bb59c311e137cc54d15f96e3d3537c07429.zip |
fix for webui.bat to support python with spaces in names
Diffstat (limited to 'webui.bat')
-rw-r--r-- | webui.bat | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,7 +27,7 @@ if [%VENV_DIR%] == [] goto :skip_venv dir %VENV_DIR%\Scripts\Python.exe >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv
-for /f %%i in ('%PYTHON% -c "import sys; print(sys.executable)"') do set PYTHON_FULLNAME=%%i
+for /f "delims=" %%i in ('CALL %PYTHON% -c "import sys; print(sys.executable)"') do set PYTHON_FULLNAME="%%i"
echo Creating venv in directory %VENV_DIR% using python %PYTHON_FULLNAME%
%PYTHON_FULLNAME% -m venv %VENV_DIR% >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv
|