Update index.py

pull/109/head
midoks 4 years ago
parent 8ae7441eff
commit 1047597448
  1. 9
      plugins/mysql/index.py

@ -8,6 +8,7 @@ import subprocess
import re import re
import json import json
# reload(sys) # reload(sys)
# sys.setdefaultencoding('utf-8') # sys.setdefaultencoding('utf-8')
@ -15,6 +16,13 @@ sys.path.append(os.getcwd() + "/class/core")
import mw import mw
if mw.isAppleSystem():
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)
app_debug = False app_debug = False
if mw.isAppleSystem(): if mw.isAppleSystem():
app_debug = True app_debug = True
@ -521,6 +529,7 @@ def runInfo():
result = {} result = {}
# print(data) # print(data)
for d in data: for d in data:
for g in gets: for g in gets:
if d[0] == g: if d[0] == g:

Loading…
Cancel
Save