diff --git a/src/ai_client.py b/src/ai_client.py index fbcc34e..cc3db0a 100644 --- a/src/ai_client.py +++ b/src/ai_client.py @@ -166,7 +166,7 @@ def clear_comms_log() -> None: _comms_log.clear() def get_credentials_path() -> Path: - return Path(os.environ.get("SLOP_CREDENTIALS", "credentials.toml")) + return Path(os.environ.get("SLOP_CREDENTIALS", str(Path(__file__).parent.parent / "credentials.toml"))) def _load_credentials() -> dict[str, Any]: cred_path = get_credentials_path()