mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-13 12:23:38 +01:00
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:
1 parent
c155917d71
commit
fc02fb9c96
1 file changed
+3
-1
@@ -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 = [
|
||||
|
||||
Reference in new issue
Block a user