From 65b142d9f86c54a34ee6500366ff674f054c48da Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Mon, 17 Mar 2025 09:55:59 +0800 Subject: [PATCH] 1 --- tools/cal_weight.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/cal_weight.py b/tools/cal_weight.py index 6398e32..9227fec 100644 --- a/tools/cal_weight.py +++ b/tools/cal_weight.py @@ -101,17 +101,17 @@ def down_obj_from_oss(workdir, pid, action): if localfile.endswith('.obj'): - if isObjFile and os.path.exists(localfile): + if isObjFile: print(f'目录{dirPath}已存在obj文件,跳过') continue if localfile.endswith('.jpg'): - if isJpgFile and os.path.exists(localfile): + if isJpgFile: print(f'目录{dirPath}已存在jpg文件,跳过') continue if localfile.endswith('.mtl'): - if isMtlFile and os.path.exists(localfile): + if isMtlFile: print(f'目录{dirPath}已存在mtl文件,跳过') continue