This commit is contained in:
midoks
2022-06-11 00:21:20 +08:00
parent ae3e48554c
commit 7ece3b452d
3 changed files with 8 additions and 16 deletions
-9
View File
@@ -15,15 +15,6 @@ import db
import mw
import config_api
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"
p_debain = "/usr/local/lib/" + info[0].strip() + "/dist-packages"
sys.path.append(p)
sys.path.append(p_debain)
import requests
from threading import Thread
+2 -1
View File
@@ -24,8 +24,9 @@ mw_start_debug(){
}
mw_start_debug2(){
python3 task.py &
gunicorn -c setting.py app:app
python3 task.py &
}
+6 -6
View File
@@ -9,13 +9,13 @@ sys.path.append(chdir + '/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"
p_debain = "/usr/local/lib/" + info[0].strip() + "/dist-packages"
# 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"
# p_debain = "/usr/local/lib/" + info[0].strip() + "/dist-packages"
sys.path.append(p)
sys.path.append(p_debain)
# sys.path.append(p)
# sys.path.append(p_debain)
import system_api
cpu_info = system_api.system_api().getCpuInfo()