diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/PluginManager.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/module/plugins/PluginManager.py b/module/plugins/PluginManager.py index 1aaa4593e..4617e9c7a 100644 --- a/module/plugins/PluginManager.py +++ b/module/plugins/PluginManager.py @@ -132,21 +132,16 @@ class PluginManager: if home[name]["v"] >= version: continue + if name in IGNORE or (folder, name) in IGNORE: + continue + plugins[name] = {} plugins[name]["v"] = version module = f.replace(".pyc", "").replace(".py", "") - if home: - user = True - else: - user = False - - if name in IGNORE or (folder, name) in IGNORE: - del plugins[name] - continue # the plugin is loaded from user directory - plugins[name]["user"] = user + plugins[name]["user"] = True if home else False plugins[name]["name"] = module if pattern: |