"""Tools and resources for MMRelay."""

import importlib.resources


def get_sample_config_path():
    """
    Provide the filesystem path to the package's sample configuration file.

    Returns:
        path (str): Path to `sample_config.yaml` located in the `mmrelay.tools` package.
    """
    return str(
        importlib.resources.files("mmrelay.tools").joinpath("sample_config.yaml")
    )


def get_service_template_path():
    """
    Return the filesystem path to the mmrelay.service template bundled with the package.

    Locate the `mmrelay.service` resource inside the `mmrelay.tools` package and return its filesystem path as a string.

    Returns:
        path (str): Filesystem path to the `mmrelay.service` template within the `mmrelay.tools` package.
    """
    return str(importlib.resources.files("mmrelay.tools").joinpath("mmrelay.service"))
