fix: settings location

This commit is contained in:
Piotr Dec 2026-04-14 01:40:34 +02:00
parent e0bc04770b
commit 0e19df5c3e
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0
2 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View file

@ -14,6 +14,6 @@ uv.lock
**/*.kdbx*
.compose_repository
__pycache__/
deployment/
**/dist/
**/*.log

View file

@ -51,4 +51,8 @@ class Settings(BaseSettings):
@lru_cache
def get_settings() -> Settings:
return Settings.from_yaml()
paths = ['deployment/config.yaml', 'config/config.yaml']
for path in paths:
if Path(path).exists():
return Settings.from_yaml(path)
raise Exception("Config file not found")