From fc02fb9c9669120a1d078ef4d97b37bb1f5e423b Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 19:45:48 -0700 Subject: [PATCH] fix(mac): resolve check_schema_docs.py root from the script location The script assumed it ran from the repository root, which is now komorebi-for-mac/ inside a larger repo. It now finds the root from its own path. Verified by running it from two working directories. --- komorebi-for-mac/check_schema_docs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/komorebi-for-mac/check_schema_docs.py b/komorebi-for-mac/check_schema_docs.py index 72bc7c3e..d0de28cb 100644 --- a/komorebi-for-mac/check_schema_docs.py +++ b/komorebi-for-mac/check_schema_docs.py @@ -373,7 +373,9 @@ def print_results(all_missing: list[MissingDoc], display_name: str) -> None: def main(): - project_root = Path.cwd() + # Resolve the macOS tree from this file, not the cwd, so the script also works + # when komorebi-for-mac/ is a subdirectory of a larger repository. + project_root = Path(__file__).resolve().parent # Define schemas to check with their respective search paths schemas = [