Add temporary "disable all extensions" option for debugging use

This commit is contained in:
space-nuko
2023-03-27 12:04:45 -04:00
parent 955df7751e
commit 2a4d3d2124
3 changed files with 10 additions and 1 deletions

View File

@@ -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):