From a84990f7d40ad2b548b35038529afeee44ce0d1b Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Wed, 26 Feb 2025 11:21:35 +0800 Subject: [PATCH] 1 --- no_resize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/no_resize.py b/no_resize.py index e9cfff9..551d4b4 100644 --- a/no_resize.py +++ b/no_resize.py @@ -207,7 +207,8 @@ def make3d4print_task(r): shutil.move(os.path.join(path, file), os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/')) #判断是否是 Obj, 如果是的话要进行重命名 if file.endswith(f'{pid}.obj'): - os.rename(os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/{file}'), os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/{objName}.obj')) + os.rename(os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/{file}'), os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/{objName}')) + print("重命名成功")