diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-11-16 17:42:26 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-11-16 17:42:26 +0100 |
commit | eda2880e6bb481804f11bc39e56f4e23311f624a (patch) | |
tree | e7e51d25cc2ee09b77e1a2e543a76b0eef15a489 | |
parent | fix deprecation warning (diff) | |
download | pyload-eda2880e6bb481804f11bc39e56f4e23311f624a.tar.xz |
little fix
-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: |