aboutsummaryrefslogtreecommitdiff
path: root/launch.py
diff options
context:
space:
mode:
authorspace-nuko <24979496+space-nuko@users.noreply.github.com>2023-03-27 12:04:45 -0400
committerspace-nuko <24979496+space-nuko@users.noreply.github.com>2023-03-27 12:04:45 -0400
commit2a4d3d21242dcc8b2b9cef85aa8f4227e855dc96 (patch)
treee8c9830b368d1a08e01aec1241ffcd0666a278ce /launch.py
parent955df7751eef11bb7697e2d77f6b8a6226b21e13 (diff)
Add temporary "disable all extensions" option for debugging use
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..1321b77a 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', False)
+
+ if disable_all_extensions:
+ return []
return [x for x in os.listdir(extensions_dir) if x not in disabled_extensions]