#!/usr/bin/env python3
# Copyright (C) 2019 Checkmk GmbH - License: GNU General Public License v2
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.

import sys

import cmk.utils.paths
from cmk.utils.packaging import cli, PathConfig

import cmk.ec.export as ec  # pylint: disable=cmk-module-layer-violation

_PATH_CONFIG = PathConfig(
    local_root=cmk.utils.paths.local_root,
    mkp_rule_pack_dir=ec.mkp_rule_pack_dir(),
    agent_based_plugins_dir=cmk.utils.paths.local_agent_based_plugins_dir,
    checks_dir=cmk.utils.paths.local_checks_dir,
    inventory_dir=cmk.utils.paths.local_inventory_dir,
    check_manpages_dir=cmk.utils.paths.local_check_manpages_dir,
    agents_dir=cmk.utils.paths.local_agents_dir,
    notifications_dir=cmk.utils.paths.local_notifications_dir,
    gui_plugins_dir=cmk.utils.paths.local_gui_plugins_dir,
    web_dir=cmk.utils.paths.local_web_dir,
    pnp_templates_dir=cmk.utils.paths.local_pnp_templates_dir,
    doc_dir=cmk.utils.paths.local_doc_dir,
    locale_dir=cmk.utils.paths.local_locale_dir,
    bin_dir=cmk.utils.paths.local_bin_dir,
    lib_dir=cmk.utils.paths.local_lib_dir,
    mib_dir=cmk.utils.paths.local_mib_dir,
    alert_handlers_dir=cmk.utils.paths.local_alert_handlers_dir,
)


if __name__ == "__main__":
    sys.exit(cli.main(sys.argv[1:] or ["--help"], _PATH_CONFIG))
