mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-10-29 05:29:58 +08:00
10 lines
246 B
Python
10 lines
246 B
Python
"""兼容旧版 NoneBot localstore 存档位置。"""
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
def data_directory(base, configured=None):
|
|
if configured is not None:
|
|
return Path(configured)
|
|
return Path(base) / "nonebot_plugin_farm" / "farm_db"
|