This commit is contained in:
dongchangxi committed 2025-02-26 11:21:35 +08:00
1 parent dba35f6c36
commit a84990f7d4
1 file changed
+2 -1
+2 -1
View File
@@ -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("重命名成功")