mirror of
https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git
synced 2026-07-30 11:33:45 +00:00
11 lines
226 B
Python
11 lines
226 B
Python
from __future__ import annotations
|
|
|
|
import json
|
|
from pathlib import Path
|
|
from typing import Any
|
|
|
|
|
|
def load_json(path: str | Path) -> Any:
|
|
with Path(path).open("r", encoding="utf-8") as file:
|
|
return json.load(file)
|