Skip to content

Commit fd02592

Browse files
committed
fix: 修复插件依赖关系图中的边缘方向
1 parent c61e3c9 commit fd02592

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

astrbot/core/star/star_manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ async def load(self, plugin_modules=None):
371371
inactivated_llm_tools = await sp.global_get("inactivated_llm_tools", [])
372372
alter_cmd = await sp.global_get("alter_cmd", {})
373373

374-
plugin_modules = self._get_plugin_modules()
375374
if plugin_modules is None:
376375
return False, "未找到任何插件模块"
377376
logger.info(
@@ -988,7 +987,7 @@ def _build_star_graph(self):
988987
metadata = self._load_plugin_metadata(plugin_dir_path)
989988
if metadata:
990989
for dep_name in metadata.dependencies:
991-
G.add_edge(root_dir_name, dep_name)
990+
G.add_edge(dep_name, root_dir_name)
992991
except Exception:
993992
pass
994993
# 过滤不存在的依赖(出边没有data, 就删除指向的节点)

0 commit comments

Comments
 (0)