mirror of https://github.com/Mai-with-u/MaiBot.git
test x2
parent
0d5e393bcb
commit
2aea5046b0
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue