aboutsummaryrefslogtreecommitdiff
path: root/launch.py
diff options
context:
space:
mode:
authorspace-nuko <24979496+space-nuko@users.noreply.github.com>2023-03-27 17:23:20 -0400
committerspace-nuko <24979496+space-nuko@users.noreply.github.com>2023-03-27 17:23:20 -0400
commit56f62d3851ff08dc1574a9ff2a05271f3730f3f7 (patch)
treed6cb42ff59d15ecdf8f9564535daf63fde42e6a1 /launch.py
parentfc8e1008ea93f98554907f25aaf52f24ce661847 (diff)
Skip extension installers if all disabled
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 c41ae82d..2e3cd4c4 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]