mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2026-08-13 10:09:27 +00:00
11 lines
355 B
Python
11 lines
355 B
Python
"""加载子模块而不执行NoneBot插件注册入口。"""
|
|
|
|
from pathlib import Path
|
|
import sys
|
|
from types import ModuleType
|
|
|
|
PACKAGE_NAME = "nonebot_plugin_llmchat"
|
|
if PACKAGE_NAME not in sys.modules:
|
|
package = ModuleType(PACKAGE_NAME)
|
|
package.__path__ = [str(Path(__file__).parents[1] / PACKAGE_NAME)]
|
|
sys.modules[PACKAGE_NAME] = package
|