MCPcopy
hub / github.com/AstrBotDevs/AstrBot / _resolve_lock_data

Function _resolve_lock_data

astrbot/core/utils/desktop_core_lock.py:60–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59
60def _resolve_lock_data() -> dict[str, Any] | None:
61 if not is_packaged_desktop_runtime():
62 return None
63
64 lock_path = os.environ.get(DESKTOP_CORE_LOCK_PATH_ENV, "").strip()
65 if not lock_path:
66 return None
67 return _load_lock_data(lock_path)
68
69
70def get_desktop_core_lock_constraints() -> tuple[str, ...]:

Calls 3

_load_lock_dataFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected