mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
Update plugin name extraction in data_source.py (#2136)
Refactor plugin name extraction to use module directly.
This commit is contained in:
@@ -57,7 +57,7 @@ class StoreManager:
|
||||
cls, plugin_info: StorePluginInfo, *, is_external: bool
|
||||
) -> Path:
|
||||
"""将商店插件信息映射到本地插件文件/目录路径。"""
|
||||
plugin_name = plugin_info.module_path.split(".")[-1] or plugin_info.module
|
||||
plugin_name = plugin_info.module
|
||||
|
||||
if plugin_info.is_dir:
|
||||
return BASE_PATH / "plugins" / plugin_name
|
||||
|
||||
Reference in New Issue
Block a user