|
|
|
@ -16,11 +16,11 @@ if os.path.exists(web_dir): |
|
|
|
|
|
|
|
|
|
import core.mw as 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) |
|
|
|
|
# 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 |
|
|
|
@ -3487,8 +3487,8 @@ def uninstallPreInspection(version): |
|
|
|
|
if mw.isDebugMode(): |
|
|
|
|
return 'ok' |
|
|
|
|
|
|
|
|
|
import plugins_api |
|
|
|
|
plugins_api.plugins_api().removeIndex(getPluginName(), version) |
|
|
|
|
from utils.plugin import plugin as MwPlugin |
|
|
|
|
MwPlugin.instance().removeIndex(getPluginName(), version) |
|
|
|
|
|
|
|
|
|
return "请手动删除MySQL[{}]<br/> rm -rf {}".format(version, getServerDir()) |
|
|
|
|
|
|
|
|
|