diff --git a/src/karl/config/settings.py b/src/karl/config/settings.py index efce1d9..79e66c9 100644 --- a/src/karl/config/settings.py +++ b/src/karl/config/settings.py @@ -37,15 +37,15 @@ class Settings(BaseSettings): kp: KeePassConfig = KeePassConfig() @classmethod - def from_yaml(cls, path: Path | str = "../../config/config.yaml") -> "Settings": + def from_yaml(cls, path: Path | str = "config/config.yaml") -> "Settings": p = Path(path) data = {} if p.exists(): with p.open("r", encoding="utf-8") as fh: data = yaml.safe_load(fh) or {} else: - import sys - sys.stderr.write(f"Warning: Config file {p.absolute()} not found.\n") + import sys, os + sys.stderr.write(f"Warning: Config file {os.path.realpath(p)} not found.\n") return cls(**data)