Update index.py

This commit is contained in:
midoks
2021-04-13 15:21:10 +08:00
parent 49dc230feb
commit 710482e9ed
+4 -8
View File
@@ -85,15 +85,11 @@ def status():
def start():
file = initDreplace()
subprocess.Popen(file + ' start',
stdout=subprocess.PIPE, shell=True)
return 'ok'
# data = mw.execShell(file + ' start')
# if data[1] == '':
# return 'ok'
# return data[1]
data = mw.execShell(file + ' start')
if data[1] == '':
return 'ok'
return data[1]
def stop():