Initial commit
This commit is contained in:
commit
57fc3525eb
7311 files changed
+1291398
No files matched your search
@@ -0,0 +1,22 @@
|
||||
"""
|
||||
app - 应用主包
|
||||
|
||||
子模块:
|
||||
- api: API 路由
|
||||
- core: 核心功能
|
||||
- models: 数据模型
|
||||
- services: 业务服务
|
||||
- utils: 工具函数
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def _load_version() -> str:
|
||||
try:
|
||||
return (Path(__file__).resolve().parent.parent / "VERSION").read_text(encoding="utf-8").strip()
|
||||
except Exception:
|
||||
return "0.0.0"
|
||||
|
||||
|
||||
__version__ = _load_version()
|
||||
Reference in new issue
Block a user