From 3367ad2094152e31eca7029c5430d0162b543d8d Mon Sep 17 00:00:00 2001 From: Piotr Dec Date: Thu, 4 Dec 2025 00:22:38 +0100 Subject: [PATCH] fix: Revert config location --- src/karl/config/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)