This commit is contained in:
Mr Chen
2024-06-15 22:11:51 +08:00
parent ddacecec9a
commit 692f51fe44
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -1093,7 +1093,12 @@ class plugins_api:
if not package in sys.path:
sys.path.append(package)
eval_str = "__import__('" + script + "')." + func + '(' + args + ')'
newRet = eval(eval_str)
try:
newRet = eval(eval_str)
except Exception as e:
print(mw.getTracebackInfo())
if mw.isDebugMode():
print('callback', eval_str)
+2 -2
View File
@@ -1621,8 +1621,8 @@ def get_user_list(args = {}):
def remove_user(args = {}):
return mc_instance.remove_user(args)
if __name__ == "__main__":
print(mc_instance.get_process_list())
# if __name__ == "__main__":
# print(mc_instance.get_process_list())
# print(mc_instance.get_network_list())
# print(mc_instance.get_process_info({'pid':66647}))
# for x in range(10):