This commit is contained in:
墨梓柒
2025-10-31 14:50:19 +08:00
parent 0d5e393bcb
commit 2aea5046b0

View File

@@ -8,7 +8,7 @@ install(extra_lines=3)
# 定义数据库文件路径
ROOT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
_DB_DIR = os.path.join(ROOT_PATH, "data")
_DB_FILE = os.path.join(_DB_DIR, "MaiBot.db" )
_DB_FILE = os.path.join(_DB_DIR, "MaiBot.db")
# 确保数据库目录存在
os.makedirs(_DB_DIR, exist_ok=True)