修改引入公共方法方式

This commit is contained in:
Mr Chen
2024-11-24 06:02:41 +08:00
parent 941285d168
commit c9f03c0f69
58 changed files with 368 additions and 190 deletions
+6 -2
View File
@@ -7,8 +7,12 @@ import json
import re
import sys
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
class App():