mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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:
@@ -24,10 +24,13 @@ The optional ``FILE_RULES`` contains a set of rules like:
|
||||
replace define V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ :c:type:`v4l2_event_motion_det`
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import argparse, sys
|
||||
import os.path
|
||||
|
||||
from lib.parse_data_structs import ParseDataStructs
|
||||
from lib.enrich_formatter import EnrichFormatter
|
||||
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
|
||||
|
||||
def main():
|
||||
"""Main function"""
|
||||
|
||||
Reference in New Issue
Block a user