[PATCH v2 2/3] tools/check-glossaries: fix default doc path
Antonin Godard <[email protected]> Fri, 03 Jul 2026 13:31:25 +0200
| Newsgroups | org.yoctoproject.lists.docs |
|---|---|
| Message-ID | <[email protected]> |
This default path pointing to the documentation was wrong, fix it. Signed-off-by: Antonin Godard <[email protected]> --- documentation/tools/check-glossaries | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/documentation/tools/check-glossaries b/documentation/tools/check-glossaries index 9f1a47126..da4987ff3 100755 --- a/documentation/tools/check-glossaries +++ b/documentation/tools/check-glossaries @@ -2,7 +2,6 @@ import argparse import difflib -import os import re import sys @@ -14,7 +13,7 @@ def parse_arguments() -> argparse.Namespace: parser.add_argument("-d", "--docs-dir", type=Path, - default=Path(os.path.dirname(os.path.realpath(__file__))) / "documentation", + default=Path(__file__).resolve().parent.parent, help="Path to documentation/ directory in yocto-docs") return parser.parse_args() -- 2.54.0