MibooGram/utils/const.py
2022-09-18 00:28:51 +08:00

17 lines
325 B
Python

"""常量"""
from pathlib import Path
__all__ = [
'PROJECT_ROOT', 'PLUGIN_DIR', 'RESOURCE_DIR',
'NOT_SET',
]
# 项目根目录
PROJECT_ROOT = Path(__file__).joinpath('../..').resolve()
# 插件目录
PLUGIN_DIR = PROJECT_ROOT / 'plugins'
# 资源目录
RESOURCE_DIR = PROJECT_ROOT / 'resources'
NOT_SET = object()