mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-28 16:20:56 +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
|
cls, plugin_info: StorePluginInfo, *, is_external: bool
|
||||||
) -> Path:
|
) -> Path:
|
||||||
"""将商店插件信息映射到本地插件文件/目录路径。"""
|
"""将商店插件信息映射到本地插件文件/目录路径。"""
|
||||||
plugin_name = plugin_info.module_path.split(".")[-1] or plugin_info.module
|
plugin_name = plugin_info.module
|
||||||
|
|
||||||
if plugin_info.is_dir:
|
if plugin_info.is_dir:
|
||||||
return BASE_PATH / "plugins" / plugin_name
|
return BASE_PATH / "plugins" / plugin_name
|
||||||
|
|||||||
Reference in New Issue
Block a user