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.
This commit is contained in:
LGUG2Z committed 2026-10-31 01:37:53 -07:00
1 parent c155917d71
commit fc02fb9c96
1 file changed
+3 -1
+3 -1
View File
@@ -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 = [