Skip to content

Commit

Permalink
20230913 setup GIT_PYTHON_GIT_EXECUTABLE for GitPython
Browse files Browse the repository at this point in the history
  • Loading branch information
der3318 committed Sep 13, 2023
1 parent 5ef669d commit 0ad38a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions webui.bat
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0ad38a9

Please sign in to comment.