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
60943107
Commit
60943107
authored
Jul 19, 2023
by
kopyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve var naming
parent
0c4ca5f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
webui.sh
webui.sh
+5
-5
No files found.
webui.sh
View file @
60943107
...
...
@@ -4,9 +4,9 @@
# change the variables in webui-user.sh instead #
#################################################
usevenv
=
1
use
_
venv
=
1
if
[[
$venv_dir
==
"-"
]]
;
then
usevenv
=
0
use
_
venv
=
0
fi
# If run from macOS, load defaults from webui-macos-env.sh
...
...
@@ -50,7 +50,7 @@ then
fi
# python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv)
if
[[
-z
"
${
venv_dir
}
"
]]
&&
[[
$usevenv
-eq
1
]]
if
[[
-z
"
${
venv_dir
}
"
]]
&&
[[
$use
_
venv
-eq
1
]]
then
venv_dir
=
"venv"
fi
...
...
@@ -163,7 +163,7 @@ do
fi
done
if
[[
$usevenv
-eq
1
]]
&&
!
"
${
python_cmd
}
"
-c
"import venv"
&>/dev/null
if
[[
$use
_
venv
-eq
1
]]
&&
!
"
${
python_cmd
}
"
-c
"import venv"
&>/dev/null
then
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
printf
"
\e
[1m
\e
[31mERROR: python3-venv is not installed, aborting...
\e
[0m"
...
...
@@ -183,7 +183,7 @@ else
cd
"
${
clone_dir
}
"
/
||
{
printf
"
\e
[1m
\e
[31mERROR: Can't cd to %s/%s/, aborting...
\e
[0m"
"
${
install_dir
}
"
"
${
clone_dir
}
"
;
exit
1
;
}
fi
if
[[
$usevenv
-eq
1
]]
&&
[[
-z
"
${
VIRTUAL_ENV
}
"
]]
;
if
[[
$use
_
venv
-eq
1
]]
&&
[[
-z
"
${
VIRTUAL_ENV
}
"
]]
;
then
printf
"
\n
%s
\n
"
"
${
delimiter
}
"
printf
"Create and activate python 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