import pathlib
import configparser


def load_config(path: pathlib.Path) -> configparser.ConfigParser:
    """Load config file."""
    conf = configparser.ConfigParser()
    with path.open() as f:
        conf.read_file(f)
    return conf