Skip to content

Commit

Permalink
fix get modinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed May 11, 2024
1 parent a2bbcf0 commit 6951fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/func.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 6951fe4

Please sign in to comment.