mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
17 lines
325 B
Python
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()
|