From 162839672b57c4b09478ab78b46097aca7ef5735 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 27 May 2026 04:38:00 +0900 Subject: [PATCH] fix: make parents if missing (#312) --- dzgui/util/_json.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dzgui/util/_json.py b/dzgui/util/_json.py index cad0263..a81e979 100644 --- a/dzgui/util/_json.py +++ b/dzgui/util/_json.py @@ -14,6 +14,7 @@ def read_json(path: Path) -> Any: def write_json(data: dict[str, Any], path: Path) -> None: try: + path.parent.mkdir(parents=True, exist_ok=True) j = json.dumps(data, indent=2) path.write_text(j) except Exception as e: