fix: Use absolute path for credentials.toml
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user