fixing
This commit is contained in:
@@ -24,6 +24,7 @@ import threading
|
||||
import requests # type: ignore[import-untyped]
|
||||
from typing import Optional, Callable, Any, List, Union, cast, Iterable
|
||||
import os
|
||||
from pathlib import Path
|
||||
from src import project_manager
|
||||
from src import file_cache
|
||||
from src import mcp_client
|
||||
@@ -157,8 +158,11 @@ def get_comms_log() -> list[dict[str, Any]]:
|
||||
def clear_comms_log() -> None:
|
||||
_comms_log.clear()
|
||||
|
||||
def get_credentials_path() -> Path:
|
||||
return Path(os.environ.get("SLOP_CREDENTIALS", "credentials.toml"))
|
||||
|
||||
def _load_credentials() -> dict[str, Any]:
|
||||
cred_path = os.environ.get("SLOP_CREDENTIALS", "credentials.toml")
|
||||
cred_path = get_credentials_path()
|
||||
try:
|
||||
with open(cred_path, "rb") as f:
|
||||
return tomllib.load(f)
|
||||
|
||||
Reference in New Issue
Block a user