MibooGram/utils/const.py

33 lines
689 B
Python
Raw Normal View History

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