File diff 48f1825d7e4e → ea0e3d3a73b7
import2ledger/hooks/__init__.py
Show inline comments
...
 
@@ -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