@@ -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