From 1ec0b1893e12f994d2e0cc331f04d0ea169f3217 Mon Sep 17 00:00:00 2001 From: Ing Date: Sat, 11 May 2024 16:00:14 +0800 Subject: [PATCH] fix get modinfo --- scripts/func.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/func.py b/scripts/func.py index a6c98f7f..50970c01 100644 --- a/scripts/func.py +++ b/scripts/func.py @@ -117,7 +117,7 @@ def getmodules(workpath, jsonpath, xlsxpath): KS.sort() for K in KS: K_name = os.path.splitext(os.path.basename(K))[0] - K_info = kmodule.modinfo(os.path.basename(K), basedir=os.path.dirname(K))[0] + K_info = kmodule.modinfo(K, basedir=os.path.dirname(K), kernel=None)[0] K_description = K_info.get("description", "") K_depends = K_info.get("depends", "") M_modules[K_name] = {"description": K_description, "depends": K_depends}