Files
Wu Clan fc34c98f0a Update the code generator to plugin (#578)
* Update the code generator to plugin

* Fix get all tables return type
2025-04-17 11:06:43 +08:00

25 lines
522 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pathlib import Path
# 项目根目录
BASE_PATH = Path(__file__).resolve().parent.parent
# alembic 迁移文件存放路径
ALEMBIC_VERSION_DIR = BASE_PATH / 'alembic' / 'versions'
# 日志文件路径
LOG_DIR = BASE_PATH / 'log'
# 静态资源目录
STATIC_DIR = BASE_PATH / 'static'
# 上传文件目录
UPLOAD_DIR = STATIC_DIR / 'upload'
# 插件目录
PLUGIN_DIR = BASE_PATH / 'plugin'
# 离线 IP 数据库路径
IP2REGION_XDB = STATIC_DIR / 'ip2region.xdb'