This commit is contained in:
Mr Chen
2024-09-14 15:50:03 +08:00
parent 1e6f755045
commit 42b0a4067b
3 changed files with 4 additions and 3 deletions
@@ -9,4 +9,4 @@ import re
domain = sys.argv[1]
path = sys.argv[2]
print(path)
print(domain,path)
@@ -9,4 +9,4 @@ import re
domain = sys.argv[1]
path = sys.argv[2]
print(path)
print(domain,path)
+2 -1
View File
@@ -538,7 +538,8 @@ def hookWriteLog(line):
def runHookPy(domain,path):
# print(domain,path)
hook_file = getConf()
cmd = 'python3 '+hook_file + ' ' + domain + ' ' + path
cmd = 'cd '+mw.getRunDir()
cmd += ' && python3 '+hook_file + ' ' + domain + ' ' + path
print(cmd)
return mw.execShell(cmd)