diff --git a/test.py b/test.py index c82d622..f87f559 100644 --- a/test.py +++ b/test.py @@ -1,5 +1,4 @@ import json -import time import uvicorn from fastapi import FastAPI diff --git a/tool.py b/tool.py index 0cfcccc..31db8e8 100755 --- a/tool.py +++ b/tool.py @@ -60,7 +60,6 @@ def exec_sh(msg, client): client.publish(info_topic, payload=publish_payload(code=200, msg='reloading'), qos=0) subprocess.Popen([cmd], shell=True) return - # subprocess.Popen([cmd], shell=True) p = subprocess.Popen([cmd], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() output = out.decode('utf-8').strip()