mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
优化调试模式
This commit is contained in:
@@ -845,7 +845,7 @@ class plugins_api:
|
||||
return ('', '')
|
||||
data = mw.execShell(py_cmd)
|
||||
|
||||
if mw.isAppleSystem():
|
||||
if mw.isDebugMode():
|
||||
print('run', py_cmd)
|
||||
print(data)
|
||||
# print os.path.exists(py_cmd)
|
||||
@@ -861,7 +861,7 @@ class plugins_api:
|
||||
sys.path.append(package)
|
||||
eval_str = "__import__('" + script + "')." + func + '(' + args + ')'
|
||||
newRet = eval(eval_str)
|
||||
if mw.isAppleSystem():
|
||||
if mw.isDebugMode():
|
||||
print('callback', eval_str)
|
||||
|
||||
return (True, newRet)
|
||||
|
||||
Reference in New Issue
Block a user