def __init__(self, hooks_base_dir=None):
    if hooks_base_dir is None:
      hooks_base_dir = pathutils.HOOKS_BASE_DIR
    # yeah, _BASE_DIR is not valid for attributes, we use it like a
    # constant
    self._BASE_DIR = hooks_base_dir # pylint: disable=C0103
Constructor for hooks runner.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/HooksRunner.__init__