diff options
author | space-nuko <24979496+space-nuko@users.noreply.github.com> | 2023-03-27 16:04:45 +0000 |
---|---|---|
committer | space-nuko <24979496+space-nuko@users.noreply.github.com> | 2023-03-27 16:04:45 +0000 |
commit | 2a4d3d21242dcc8b2b9cef85aa8f4227e855dc96 (patch) | |
tree | e8c9830b368d1a08e01aec1241ffcd0666a278ce /modules | |
parent | 955df7751eef11bb7697e2d77f6b8a6226b21e13 (diff) | |
download | stable-diffusion-webui-gfx803-2a4d3d21242dcc8b2b9cef85aa8f4227e855dc96.tar.gz stable-diffusion-webui-gfx803-2a4d3d21242dcc8b2b9cef85aa8f4227e855dc96.tar.bz2 stable-diffusion-webui-gfx803-2a4d3d21242dcc8b2b9cef85aa8f4227e855dc96.zip |
Add temporary "disable all extensions" option for debugging use
Diffstat (limited to 'modules')
-rw-r--r-- | modules/extensions.py | 4 | ||||
-rw-r--r-- | modules/shared.py | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/modules/extensions.py b/modules/extensions.py index 0d34b89a..1493e8c8 100644 --- a/modules/extensions.py +++ b/modules/extensions.py @@ -97,6 +97,10 @@ def list_extensions(): if not os.path.isdir(extensions_dir):
return
+ if shared.opts.disable_all_extensions:
+ print("*** \"Disable all extensions\" option was set, will not load any extensions ***")
+ return
+
extension_paths = []
for dirname in [extensions_dir, extensions_builtin_dir]:
if not os.path.isdir(dirname):
diff --git a/modules/shared.py b/modules/shared.py index 3ad0862b..c79ec67b 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -422,7 +422,8 @@ options_templates.update(options_section(('postprocessing', "Postprocessing"), { }))
options_templates.update(options_section((None, "Hidden options"), {
- "disabled_extensions": OptionInfo([], "Disable those extensions"),
+ "disabled_extensions": OptionInfo([], "Disable these extensions"),
+ "disable_all_extensions": OptionInfo(False, "Disable all extensions (preserves the list of disabled extensions)"),
"sd_checkpoint_hash": OptionInfo("", "SHA256 hash of the current checkpoint"),
}))
|