diff options
Diffstat (limited to 'src/ee/project')
-rw-r--r-- | src/ee/project/__init__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ee/project/__init__.py b/src/ee/project/__init__.py new file mode 100644 index 0000000..187fc3c --- /dev/null +++ b/src/ee/project/__init__.py @@ -0,0 +1,12 @@ +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 |