diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-21 15:01:20 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-25 13:19:22 +0000 |
commit | 636ff513b0b5939f15456b82abd2e99951f6e3c1 (patch) | |
tree | 44e67a15b5c44e55bfd54c13dcd0213426b4e3aa | |
parent | 51206edb620b098f286cc33fab748ab90c5b20d4 (diff) | |
download | stable-diffusion-webui-gfx803-636ff513b0b5939f15456b82abd2e99951f6e3c1.tar.gz stable-diffusion-webui-gfx803-636ff513b0b5939f15456b82abd2e99951f6e3c1.tar.bz2 stable-diffusion-webui-gfx803-636ff513b0b5939f15456b82abd2e99951f6e3c1.zip |
Merge pull request #11920 from wfjsw/typo-fix-1
typo fix
-rw-r--r-- | modules/launch_utils.py | 6 | ||||
-rw-r--r-- | modules/scripts.py | 2 | ||||
-rw-r--r-- | webui.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py index 93838745..93c8c8ca 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -233,7 +233,7 @@ def run_extensions_installers(settings_file): re_requirement = re.compile(r"\s*([-_a-zA-Z0-9]+)\s*(?:==\s*([-+_.a-zA-Z0-9]+))?\s*")
-def requrements_met(requirements_file):
+def requirements_met(requirements_file):
"""
Does a simple parse of a requirements.txt file to determine if all rerqirements in it
are already installed. Returns True if so, False if not installed or parsing fails.
@@ -293,7 +293,7 @@ def prepare_environment(): try:
# the existance of this file is a signal to webui.sh/bat that webui needs to be restarted when it stops execution
os.remove(os.path.join(script_path, "tmp", "restart"))
- os.environ.setdefault('SD_WEBUI_RESTARTING ', '1')
+ os.environ.setdefault('SD_WEBUI_RESTARTING', '1')
except OSError:
pass
@@ -354,7 +354,7 @@ def prepare_environment(): if not os.path.isfile(requirements_file):
requirements_file = os.path.join(script_path, requirements_file)
- if not requrements_met(requirements_file):
+ if not requirements_met(requirements_file):
run_pip(f"install -r \"{requirements_file}\"", "requirements")
run_extensions_installers(settings_file=args.ui_settings_file)
diff --git a/modules/scripts.py b/modules/scripts.py index 7d9dd59f..f34240a0 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -119,7 +119,7 @@ class Script: def after_extra_networks_activate(self, p, *args, **kwargs):
"""
- Calledafter extra networks activation, before conds calculation
+ Called after extra networks activation, before conds calculation
allow modification of the network after extra networks activation been applied
won't be call if p.disable_extra_networks
@@ -407,7 +407,7 @@ def webui(): ssl_verify=cmd_opts.disable_tls_verify,
debug=cmd_opts.gradio_debug,
auth=gradio_auth_creds,
- inbrowser=cmd_opts.autolaunch and os.getenv('SD_WEBUI_RESTARTING ') != '1',
+ inbrowser=cmd_opts.autolaunch and os.getenv('SD_WEBUI_RESTARTING') != '1',
prevent_thread_lock=True,
allowed_paths=cmd_opts.gradio_allowed_path,
app_kwargs={
|