🎨 Use project root instead of relative path

This commit is contained in:
Ruben Lucas 2025-04-17 08:32:38 +02:00
parent 770f341c1f
commit a58ef2f365

View File

@ -24,7 +24,8 @@ system_prompt = (
"If you don't know the answer, say that you don't know."
)
CONFIG_FILE_PATH = Path("config.yaml")
PROJECT_ROOT = Path(__file__).resolve().parent.parent
CONFIG_FILE_PATH = PROJECT_ROOT / "config.yaml"
try:
settings: AppSettings = load_settings(CONFIG_FILE_PATH)