Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SrMouraSilva committed Nov 17, 2016
2 parents 561e7c7 + 86df257 commit 0ea14c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions pluginsmanager/banks_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def register(self, observer):

def append(self, bank):
bank.observer = self.observer_manager
self.banks.append(bank)


class ObserverManager(UpdatesObserver):
Expand Down
2 changes: 1 addition & 1 deletion pluginsmanager/model/lv2/lv2_effect.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __str__(self):
return str(self.plugin)

def __repr__(self):
return "<{} object as '{}'{} active at 0x{:x}>".format(
return "<{} object as '{}' {} active at 0x{:x}>".format(
self.__class__.__name__,
str(self),
'' if self.active else 'not',
Expand Down
7 changes: 5 additions & 2 deletions pluginsmanager/model/lv2/lv2_effect_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ class Lv2EffectBuilder(object):
in *plugins.json*.
"""

def __init__(self):
def __init__(self, plugins_json=None):
self.plugins = {}

with open(os.path.dirname(__file__) + '/plugins.json') as data_file:
if plugins_json is None:
plugins_json = os.path.dirname(__file__) + '/plugins.json'

with open(plugins_json) as data_file:
data = json.load(data_file)

for plugin in data:
Expand Down

0 comments on commit 0ea14c5

Please sign in to comment.