dongchangxi 10 months ago
parent
commit
dba35f6c36
  1. 3
      no_resize.py

3
no_resize.py

@ -205,6 +205,9 @@ def make3d4print_task(r):
os.makedirs(os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/'),mode=0o777, exist_ok=True) os.makedirs(os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/'),mode=0o777, exist_ok=True)
shutil.move(os.path.join(path, file), os.path.join(workdir, f'complate/objs/{pid}/order_{orderId}/')) 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'))

Loading…
Cancel
Save