未能成为人类

This commit is contained in:
2026-03-27 14:46:50 +08:00
parent caf53cfd5d
commit c21bc66c80
3 changed files with 1 additions and 21 deletions

View File

@@ -62,17 +62,12 @@ class PluginManager(Singleton):
扫描并加载 `plugins` 目录下的所有插件。
"""
# 使用 pathlib 获取更可靠的路径
<<<<<<< HEAD
# 当前文件core/managers/plugin_manager.py
# 目标neobot/plugins/
=======
# 当前文件src/neobot/core/managers/plugin_manager.py
# 目标src/neobot/plugins/
>>>>>>> eb9079744c82f8e254de084a3a089ef91c37e9dc
current_dir = os.path.dirname(os.path.abspath(__file__))
# 回退三级到项目根目录 (core/managers -> core -> neobot -> src)
root_dir = os.path.dirname(os.path.dirname(os.path.dirname(current_dir)))
plugin_dir = os.path.join(root_dir, "src", "neobot", "plugins")
plugin_dir = os.path.join(root_dir, "neobot", "plugins")
# 使用完整的包名neobot.plugins
package_name = "neobot.plugins"