summaryrefslogtreecommitdiffstats
path: root/module/plugins/PluginManager.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/PluginManager.py')
-rw-r--r--module/plugins/PluginManager.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/module/plugins/PluginManager.py b/module/plugins/PluginManager.py
index 59fdb31e8..a18a53bdb 100644
--- a/module/plugins/PluginManager.py
+++ b/module/plugins/PluginManager.py
@@ -44,7 +44,10 @@ class PluginManager:
sys.path.append(abspath(""))
- for type in ('accounts', 'captcha', 'container', 'crypter', 'hooks', 'hoster', 'internal')
+ #@NOTE: In 0.4.10 directory "accounts" changes to "account"
+ self.plugins['accounts'] = self.accountPlugins = self.parse("accounts")
+
+ for type in ('captcha', 'container', 'crypter', 'hooks', 'hoster', 'internal'):
self.plugins[type] = self.parse(type)
setattr(self, "%sPlugins" % type, self.plugins[type])
@@ -351,7 +354,11 @@ class PluginManager:
#index creation
self.plugins[type] = self.parse(type)
- setattr(self, "%sPlugins" % type, self.plugins[type])
+
+ if type is "accounts":
+ self.accountPlugins = self.plugins[type] #@TODO: Remove in 0.4.10
+ else:
+ setattr(self, "%sPlugins" % type, self.plugins[type])
if "accounts" in as_dict: #: accounts needs to be reloaded
self.core.accountManager.initPlugins()