修改引入公共方法方式

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
+9 -11
View File
@@ -5,19 +5,17 @@ import time
import os
import sys
import re
sys.path.append(os.getcwd() + "/class/core")
import mw
# cmd = 'ls /usr/local/lib/ | grep python | cut -d \\ -f 1 | awk \'END {print}\''
# info = mw.execShell(cmd)
# p = "/usr/local/lib/" + info[0].strip() + "/site-packages"
# sys.path.append(p)
import psutil
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
if mw.isAppleSystem():