Update setting.py

This commit is contained in:
midoks
2022-06-11 00:10:25 +08:00
parent 42c9150668
commit 24822970eb
+4 -4
View File
@@ -9,10 +9,10 @@ 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"
# sys.path.append(p)
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 system_api
cpu_info = system_api.system_api().getCpuInfo()