mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
pyenv-win compatibility - another approach (#16287)
This commit is contained in:
parent
14c6d6cb3a
commit
f31faf6f14
11
webui.bat
11
webui.bat
@ -4,7 +4,16 @@ if exist webui.settings.bat (
|
||||
call webui.settings.bat
|
||||
)
|
||||
|
||||
if not defined PYTHON (set PYTHON=python)
|
||||
if not defined PYTHON (
|
||||
for /f "delims=" %%A in ('where python ^| findstr /n . ^| findstr ^^1:') do (
|
||||
if /i "%%~xA" == ".exe" (
|
||||
set PYTHON=python
|
||||
) else (
|
||||
set PYTHON=call python
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
if defined GIT (set "GIT_PYTHON_GIT_EXECUTABLE=%GIT%")
|
||||
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user