dongchangxi 5 months ago
parent
commit
c52211cfbf
  1. 10
      timer/external_order_glbV2.py

10
timer/external_order_glbV2.py

@ -67,11 +67,11 @@ def down_obj_from_oss(workdir, pid, action):
filename = file.key.split('/')[-1] filename = file.key.split('/')[-1]
if filename.endswith(".exr"): # if filename.endswith(".exr"):
continue # continue
if filename.endswith("_1.jpg") or filename.endswith("_8.jpg"): # if filename.endswith("_1.jpg") or filename.endswith("_8.jpg"):
continue # continue
if file.key != jpgsTemp and file.key != mtlTemp and file.key != objTemp: if file.key != jpgsTemp and file.key != mtlTemp and file.key != objTemp:
@ -79,7 +79,7 @@ def down_obj_from_oss(workdir, pid, action):
if filename.endswith('.obj'): if filename.endswith('.obj'):
obj_filename = filename obj_filename = filename
# print('正在下载:', file.key) print('正在下载:', file.key,filename)
localfile = os.path.join(workdir, action, pid, filename) localfile = os.path.join(workdir, action, pid, filename)
config.oss_bucket.get_object_to_file(file.key, localfile) config.oss_bucket.get_object_to_file(file.key, localfile)

Loading…
Cancel
Save