1
0

Pass plugins object to plugin constructor

This commit is contained in:
Neil Booth
2015-09-04 09:07:18 +09:00
parent ac4adbb298
commit ec3b7ba5ee
8 changed files with 24 additions and 27 deletions

View File

@@ -162,8 +162,8 @@ class Exchanger(ThreadJob):
class Plugin(BasePlugin):
def __init__(self,a,b):
BasePlugin.__init__(self,a,b)
def __init__(self, parent, config, name):
BasePlugin.__init__(self, parent, config, name)
self.exchange = self.config.get('use_exchange', "Blockchain")
self.currencies = [self.fiat_unit()]
self.exchanger = Exchanger(self)