nonebot2/tests/plugins/nested/__init__.py
2022-08-04 13:39:20 +08:00

14 lines
337 B
Python

from pathlib import Path
import nonebot
from nonebot.plugin import PluginManager, _managers
manager = PluginManager(
search_path=[str((Path(__file__).parent / "plugins").resolve())]
)
_managers.append(manager)
# test load nested plugin with require
manager.load_plugin("nested_subplugin")
manager.load_plugin("nested_subplugin2")