import configparser from pathlib import Path def load_config(project_dir: Path) -> configparser.ConfigParser: config = configparser.ConfigParser() config_path = project_dir / ".ee" / "config" with config_path.open("r") as f: config.read_file(f, source=str(config_path)) return config