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
9cfd10cd
Commit
9cfd10cd
authored
Jan 10, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repair #6612
parent
29fb5327
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
webui.bat
webui.bat
+5
-5
No files found.
webui.bat
View file @
9cfd10cd
@echo off
if not defined PYTHON (set PYTHON=python)
if not defined VENV_DIR (set VENV_DIR=%~dp0
\
venv)
if not defined VENV_DIR (set VENV_DIR=%~dp0
%
venv)
set ERROR_REPORTING=FALSE
...
...
@@ -13,16 +13,16 @@ echo Couldn't launch python
goto :show_stdout_stderr
:start_venv
if [
%VENV_DIR%] == [-
] goto :skip_venv
if [
"%VENV_DIR%"] == ["-"
] goto :skip_venv
dir
%VENV_DIR%\Scripts\Python.exe
>tmp/stdout.txt 2>tmp/stderr.txt
dir
"%VENV_DIR%\Scripts\Python.exe"
>tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv
for /f "delims=" %%i in ('CALL %PYTHON% -c "import sys; print(sys.executable)"') do set PYTHON_FULLNAME="%%i"
echo Creating venv in directory %VENV_DIR% using python %PYTHON_FULLNAME%
%PYTHON_FULLNAME% -m venv
%VENV_DIR%
>tmp/stdout.txt 2>tmp/stderr.txt
%PYTHON_FULLNAME% -m venv
"%VENV_DIR%"
>tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv
echo Unable to create venv in directory
%VENV_DIR%
echo Unable to create venv in directory
"%VENV_DIR%"
goto :show_stdout_stderr
:activate_venv
...
...
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