docs: bring some order to our Python module hierarchy

Now that we have tools/lib/python for our Python modules, turn them into
proper packages with a single namespace so that everything can just use
tools/lib/python in sys.path.  No functional change.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20251110220430.726665-3-corbet@lwn.net>
This commit is contained in:
Jonathan Corbet
2025-11-10 15:04:30 -07:00
parent 778b8ebe51
commit 992a9df41a
18 changed files with 34 additions and 35 deletions

View File

@@ -28,9 +28,9 @@ import argparse, sys
import os.path
src_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.join(src_dir, '../lib/python/kdoc'))
from parse_data_structs import ParseDataStructs
from enrich_formatter import EnrichFormatter
sys.path.insert(0, os.path.join(src_dir, '../lib/python'))
from kdoc.parse_data_structs import ParseDataStructs
from kdoc.enrich_formatter import EnrichFormatter
def main():
"""Main function"""