fix: Use absolute path for credentials.toml

This commit is contained in:
2026-03-06 23:42:01 -05:00
parent ae5e7dedae
commit af4b716a74

View File

@@ -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()