mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-30 04:11:15 -08:00
Merge pull request #13231 from der3318/better-support-for-portable-git
Better Support for Portable Git
This commit is contained in:
commit
df48222f3e
2 changed files with 3 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
@echo off
|
||||
|
||||
if not defined PYTHON (set PYTHON=python)
|
||||
if defined GIT (set "GIT_PYTHON_GIT_EXECUTABLE=%GIT%")
|
||||
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
|
||||
|
||||
set SD_WEBUI_RESTART=tmp/restart
|
||||
|
|
|
|||
2
webui.sh
2
webui.sh
|
|
@ -51,6 +51,8 @@ fi
|
|||
if [[ -z "${GIT}" ]]
|
||||
then
|
||||
export GIT="git"
|
||||
else
|
||||
export GIT_PYTHON_GIT_EXECUTABLE="${GIT}"
|
||||
fi
|
||||
|
||||
# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue