Update index.py

This commit is contained in:
Mr Chen
2024-06-10 14:49:40 +08:00
parent 1d22d64558
commit 3a955ce107
+8 -1
View File
@@ -110,7 +110,14 @@ def getSocketFile():
content = mw.readFile(file)
rep = 'socket\s*=\s*(.*)'
tmp = re.search(rep, content)
return tmp.groups()[0].strip()
socket = tmp.groups()[0].strip()
_socket = socket+'.sock'
if os.path.exists(_socket):
return _socket
return socket
def getErrorLogsFile():