mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-16 12:51:45 +00:00
4c702515a0
Co-authored-by: xtaodada <xtao@xtaolink.cn>
25 lines
606 B
Python
25 lines
606 B
Python
"""常量"""
|
|
from pathlib import Path
|
|
|
|
from httpx import URL
|
|
|
|
__all__ = [
|
|
'PROJECT_ROOT', 'PLUGIN_DIR', 'RESOURCE_DIR',
|
|
'NOT_SET',
|
|
'HONEY_HOST', 'ENKA_HOST', 'AMBR_HOST', 'CELESTIA_HOST',
|
|
]
|
|
|
|
# 项目根目录
|
|
PROJECT_ROOT = Path(__file__).joinpath('../..').resolve()
|
|
# 插件目录
|
|
PLUGIN_DIR = PROJECT_ROOT / 'plugins'
|
|
# 资源目录
|
|
RESOURCE_DIR = PROJECT_ROOT / 'resources'
|
|
|
|
NOT_SET = object()
|
|
|
|
HONEY_HOST = URL("https://genshin.honeyhunterworld.com/")
|
|
ENKA_HOST = URL("https://enka.network/")
|
|
AMBR_HOST = URL("https://api.ambr.top/")
|
|
CELESTIA_HOST = URL("https://www.projectcelestia.com/")
|