From 071e95f9ce7e3ef51ef3952eaf07fa12492d133c Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Mon, 17 Mar 2025 10:05:49 +0800 Subject: [PATCH] 2 --- tools/cal_weight.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/cal_weight.py b/tools/cal_weight.py index 7206253..c5d602a 100644 --- a/tools/cal_weight.py +++ b/tools/cal_weight.py @@ -148,6 +148,9 @@ def main(action, pid, sizes,orderId=0): res = requests.post(url,data=arrParams) print('res:', res.text) + #删除目录 + shutil.rmtree(os.path.join(config.workdir, action, pid)) + if __name__ == '__main__': sizes = (90, 120, 150, 180)