Skip to content

Commit

Permalink
support webui.settings.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
wkpark committed Oct 14, 2023
1 parent 4be7b62 commit 10d7d35
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
20 changes: 20 additions & 0 deletions webui.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
@echo off

if not exist webui.settings.bat (
if exist webui.settings.bat.in (
copy webui.settings.bat.in webui.settings.bat
)
)

if exist webui.settings.bat (
if defined PTHTON (set _PYTHON=%PYTHON%)
if defined GIT (set _GIT=%GIT%)
if defined VENV_DIR (set _VENV_DIR=%VENV_DIR%)
if defined COMMANDLINE_ARGS (set _COMMANDLINE_ARGS=%COMMANDLINE_ARGS%)

call webui.settings.bat

if not defined PYTHON (if defined _PYTHON (set PYTHON=%_PYTHON%))
if not defined GIT (if defined _GIT (set GIT=%_GIT%))
if not defined VENV_DIR (if defined _VENV_DIR (set VENV_DIR=%_VENV_DIR%))
if not defined COMMANDLINE_ARGS (if defined _COMMANDLINE_ARGS (set COMMANDLINE_ARGS=%_COMMANDLINE_ARGS%))
)

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")
Expand Down
7 changes: 7 additions & 0 deletions webui.settings.bat.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@REM
@REM change the variables below to your need.
@REM any variables re-defined here will override settings in the webui-user.bat
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=

0 comments on commit 10d7d35

Please sign in to comment.