import pathlib


def get_config_path(path: pathlib.Path) -> pathlib.Path:
    """returns the config directory path from a sketch path"""
    config_path = path.parent / "config"
    if not config_path.exists():
        config_path.mkdir()
    return config_path