From d80b24bab69e13a7aa4cc9da7c4abfa229b98fb4 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Fri, 29 Dec 2023 10:08:55 +0800 Subject: [PATCH] update --- test.py | 1 - tool.py | 1 - 2 files changed, 2 deletions(-) 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()