mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user