This commit is contained in:
Mr Chen
2024-11-05 01:26:45 +08:00
parent fed4a4ae48
commit 024dedabaf
4 changed files with 189 additions and 3 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class monitor:
def initDBFile(self):
if os.path.exists(self._dbfile):
return True
sql_file = mw.getPanelDataDir() + '/sql/system.sql'
sql_file = mw.getPanelDir() + '/web/admin/setup/sql/system.sql'
sql = db.Sql().dbPos(mw.getPanelDataDir(),'system')
csql = mw.readFile(sql_file)
csql_list = csql.split(';')