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