Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
e2c8584f
Commit
e2c8584f
authored
Jan 10, 2023
by
Vladimir Repin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make VENV envvar accept absolute path instead of relative
parent
50fb20ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
webui.bat
webui.bat
+3
-3
No files found.
webui.bat
View file @
e2c8584f
@echo off
@echo off
if not defined PYTHON (set PYTHON=python)
if not defined PYTHON (set PYTHON=python)
if not defined VENV_DIR (set VENV_DIR=venv)
if not defined VENV_DIR (set VENV_DIR=
%~dp0\
venv)
set ERROR_REPORTING=FALSE
set ERROR_REPORTING=FALSE
...
@@ -26,7 +26,7 @@ echo Unable to create venv in directory %VENV_DIR%
...
@@ -26,7 +26,7 @@ echo Unable to create venv in directory %VENV_DIR%
goto :show_stdout_stderr
goto :show_stdout_stderr
:activate_venv
:activate_venv
set PYTHON="%
~dp0%
VENV_DIR%\Scripts\Python.exe"
set PYTHON="%VENV_DIR%\Scripts\Python.exe"
echo venv %PYTHON%
echo venv %PYTHON%
if [%ACCELERATE%] == ["True"] goto :accelerate
if [%ACCELERATE%] == ["True"] goto :accelerate
goto :launch
goto :launch
...
@@ -35,7 +35,7 @@ goto :launch
...
@@ -35,7 +35,7 @@ goto :launch
:accelerate
:accelerate
echo "Checking for accelerate"
echo "Checking for accelerate"
set ACCELERATE="%
~dp0%
VENV_DIR%\Scripts\accelerate.exe"
set ACCELERATE="%VENV_DIR%\Scripts\accelerate.exe"
if EXIST %ACCELERATE% goto :accelerate_launch
if EXIST %ACCELERATE% goto :accelerate_launch
:launch
:launch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment