summaryrefslogtreecommitdiff
path: root/src/config_loader.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/config_loader.py')
-rw-r--r--src/config_loader.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config_loader.py b/src/config_loader.py
index 796ad39..73170ce 100644
--- a/src/config_loader.py
+++ b/src/config_loader.py
@@ -151,6 +151,11 @@ class ConfigLoader:
"""Get output directory."""
return self._config.get('output', {}).get('dir', 'output')
+ @property
+ def project_root(self) -> str:
+ """Get project root directory (directory containing the config file)."""
+ return os.path.dirname(os.path.abspath(self.config_path))
+
def get_provider(self, name: str) -> ProviderConfig:
"""Get a specific provider configuration."""
if name not in self._providers: