From 6951fe491c1c88c7afd682cab72705fa14d752ce Mon Sep 17 00:00:00 2001 From: Ing Date: Sat, 11 May 2024 13:13:27 +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 2c3a3e34..a6c98f7f 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(K)[0] + K_info = kmodule.modinfo(os.path.basename(K), basedir=os.path.dirname(K))[0] K_description = K_info.get("description", "") K_depends = K_info.get("depends", "") M_modules[K_name] = {"description": K_description, "depends": K_depends}