diff --git a/setting.py b/setting.py index 50a40a3d0..2d56f03c6 100755 --- a/setting.py +++ b/setting.py @@ -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()