mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
12 lines
195 B
Python
12 lines
195 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
import nonebot
|
|
|
|
path = Path(__file__).parent
|
|
|
|
for f in os.listdir(path):
|
|
_p = path / f
|
|
if _p.is_dir():
|
|
nonebot.load_plugins(str(_p.resolve()))
|