diff --git a/import2ledger/hooks/__init__.py b/import2ledger/hooks/__init__.py index 87a345f4c98f486bfb856d64d475198b909a30ad..2dd4a4b32ab893301d036b767bc7028f67817c03 100644 --- a/import2ledger/hooks/__init__.py +++ b/import2ledger/hooks/__init__.py @@ -23,7 +23,8 @@ HOOK_KINDS = enum.Enum('HOOK_KINDS', [ 'OUTPUT', ]) -def load_all(): - hooks = list(dynload.submodule_items_named(__file__, operator.methodcaller('endswith', 'Hook'))) +def load_all(config): + hooks = list(dynload.submodule_items_named( + __file__, operator.methodcaller('endswith', 'Hook'), config)) hooks.sort(key=operator.attrgetter('KIND.value')) return hooks