aboutsummaryrefslogtreecommitdiff
path: root/launch.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-03-28 19:42:09 +0300
committerGitHub <noreply@github.com>2023-03-28 19:42:09 +0300
commitdaa5a83bb7b38a46b875a4df2f9a35b848359297 (patch)
tree264bf06c8a97caea33d709b75beaa3fb481cebba /launch.py
parentcb3e1ba9bd5a24373f10406f14c8c8a36dd3fb08 (diff)
parent56f62d3851ff08dc1574a9ff2a05271f3730f3f7 (diff)
Merge pull request #9052 from space-nuko/temp-disable-extensions
Temporary disable extensions option
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/launch.py b/launch.py
index c9f7c3cc..68e08114 100644
--- a/launch.py
+++ b/launch.py
@@ -206,6 +206,10 @@ def list_extensions(settings_file):
print(e, file=sys.stderr)
disabled_extensions = set(settings.get('disabled_extensions', []))
+ disable_all_extensions = settings.get('disable_all_extensions', 'none')
+
+ if disable_all_extensions != 'none':
+ return []
return [x for x in os.listdir(extensions_dir) if x not in disabled_extensions]