mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -24,8 +24,9 @@ mw_start_debug(){
|
||||
}
|
||||
|
||||
mw_start_debug2(){
|
||||
python3 task.py &
|
||||
gunicorn -c setting.py app:app
|
||||
python3 task.py &
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
+6
-6
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user