From 4525215e384a1446404ef0c3909fd824720d2b2e Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 20 Nov 2011 14:33:11 +0100 Subject: automatic plugin reloader --- module/plugins/AccountManager.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'module/plugins/AccountManager.py') diff --git a/module/plugins/AccountManager.py b/module/plugins/AccountManager.py index 7e30f4817..fc521d36c 100644 --- a/module/plugins/AccountManager.py +++ b/module/plugins/AccountManager.py @@ -35,18 +35,19 @@ class AccountManager(): """Constructor""" self.core = core + self.lock = Lock() + + self.initPlugins() + self.saveAccounts() # save to add categories to conf + def initPlugins(self): self.accounts = {} # key = ( plugin ) self.plugins = {} - self.lock = Lock() self.initAccountPlugins() - self.loadAccounts() - self.saveAccounts() # save to add categories to conf - #---------------------------------------------------------------------- def getAccountPlugin(self, plugin): """get account instance for plugin or None if anonymous""" if plugin in self.accounts: -- cgit v1.2.3