docs: Move the python libraries to tools/lib/python

"scripts/lib" was always a bit of an awkward place for Python modules.  We
already have tools/lib; create a tools/lib/python, move the libraries
there, and update the users accordingly.

While at it, move the contents of tools/docs/lib.  Rather than make another
directory, just put these documentation-oriented modules under "kdoc".

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20251110220430.726665-2-corbet@lwn.net>
This commit is contained in:
Jonathan Corbet
2025-11-10 15:04:29 -07:00
parent f690e07859
commit 778b8ebe51
28 changed files with 29 additions and 19 deletions

View File

@@ -9,13 +9,17 @@
"""
Detect problematic Noto CJK variable fonts.
or more details, see lib/latex_fonts.py.
or more details, see .../tools/lib/python/kdoc/latex_fonts.py.
"""
import argparse
import sys
import os.path
from lib.latex_fonts import LatexFontChecker
src_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.join(src_dir, '../lib/python/kdoc'))
from latex_fonts import LatexFontChecker
checker = LatexFontChecker()