修复db文件空格路径的bug
This commit is contained in:
11
app/DataBase/msg.py
Normal file
11
app/DataBase/msg.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import os.path
|
||||
import sqlite3
|
||||
|
||||
DB = None
|
||||
cursor = None
|
||||
misc_path = "./app/Database/Msg/MSG0.db"
|
||||
# misc_path = './Msg/Misc.db'
|
||||
if os.path.exists(misc_path):
|
||||
DB = sqlite3.connect(misc_path, check_same_thread=False)
|
||||
# '''创建游标'''
|
||||
cursor = DB.cursor()
|
||||
Reference in New Issue
Block a user