From 24822970eb5711651ed21f58eb02597d9afaf685 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 11 Jun 2022 00:10:25 +0800 Subject: [PATCH] Update setting.py --- setting.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()