diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-03-28 19:42:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 19:42:09 +0300 |
commit | daa5a83bb7b38a46b875a4df2f9a35b848359297 (patch) | |
tree | 264bf06c8a97caea33d709b75beaa3fb481cebba /launch.py | |
parent | cb3e1ba9bd5a24373f10406f14c8c8a36dd3fb08 (diff) | |
parent | 56f62d3851ff08dc1574a9ff2a05271f3730f3f7 (diff) |
Merge pull request #9052 from space-nuko/temp-disable-extensions
Temporary disable extensions option
Diffstat (limited to 'launch.py')
-rw-r--r-- | launch.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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]
|