2022-09-08 01:08:37 +00:00
|
|
|
"""常量"""
|
|
|
|
from pathlib import Path
|
|
|
|
|
2022-10-07 05:02:49 +00:00
|
|
|
from httpx import URL
|
|
|
|
|
2022-09-08 01:08:37 +00:00
|
|
|
__all__ = [
|
2022-09-17 16:28:51 +00:00
|
|
|
'PROJECT_ROOT', 'PLUGIN_DIR', 'RESOURCE_DIR',
|
2022-09-08 01:08:37 +00:00
|
|
|
'NOT_SET',
|
2022-10-07 05:02:49 +00:00
|
|
|
'HONEY_HOST', 'ENKA_HOST', 'AMBR_HOST', 'CELESTIA_HOST',
|
2022-09-08 01:08:37 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
# 项目根目录
|
|
|
|
PROJECT_ROOT = Path(__file__).joinpath('../..').resolve()
|
|
|
|
# 插件目录
|
|
|
|
PLUGIN_DIR = PROJECT_ROOT / 'plugins'
|
2022-09-17 16:28:51 +00:00
|
|
|
# 资源目录
|
|
|
|
RESOURCE_DIR = PROJECT_ROOT / 'resources'
|
2022-09-08 01:08:37 +00:00
|
|
|
|
|
|
|
NOT_SET = object()
|
2022-10-07 05:02:49 +00:00
|
|
|
|
|
|
|
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/")
|