Update index.py

This commit is contained in:
Mr Chen
2024-11-24 04:40:21 +08:00
parent 080e4ad696
commit 2d14184c82
+6 -2
View File
@@ -7,8 +7,12 @@ import time
import json
import re
sys.path.append(os.getcwd() + "/class/core")
import mw
web_dir = os.getcwd() + "/web"
if os.path.exists(web_dir):
sys.path.append(web_dir)
os.chdir(web_dir)
import core.mw as mw
app_debug = False