| Message ID | 20260703-pre-commit-v2-2-a9a391299c28@bootlin.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | Add pre-commit support | expand |
Hi Antonin, On 7/3/26 1:31 PM, Antonin Godard via lists.yoctoproject.org wrote: > This default path pointing to the documentation was wrong, fix it. > Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> Thanks! Quentin
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()
This default path pointing to the documentation was wrong, fix it. Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- documentation/tools/check-glossaries | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)