Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
9cfd10cd
Commit
9cfd10cd
authored
Jan 11, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repair #6612
parent
29fb5327
Changes
1
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
@echo
off
if
not
defined
PYTHON
(
set
PYTHON
=
python
)
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
set
ERROR_REPORTING
=
FALSE
...
@@ -13,16 +13,16 @@ echo Couldn't launch python
...
@@ -13,16 +13,16 @@ echo Couldn't launch python
goto :show_stdout_stderr
goto :show_stdout_stderr
:start_venv
: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
if
%ERRORLEVEL%
== 0 goto :activate_venv
for /f "delims="
%%i
in ('
CALL
%PYTHON%
-c
"import sys; print(sys.executable)"
') do set PYTHON_FULLNAME="
%%i
"
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%
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
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
goto :show_stdout_stderr
:activate_venv
: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