From a4fa45509879663ef6056a994e2786a924c45198 Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Mon, 17 Mar 2025 09:52:06 +0800 Subject: [PATCH] 1 --- tools/cal_weight.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/cal_weight.py b/tools/cal_weight.py index 19145a4..9a9e1c7 100644 --- a/tools/cal_weight.py +++ b/tools/cal_weight.py @@ -89,14 +89,14 @@ def down_obj_from_oss(workdir, pid, action): isObjFile = False isJpgFile = False isMtlFile = False - for file in os.listdir(dirPath): - if file.endswith('.obj'): + for file1 in os.listdir(dirPath): + if file1.endswith('.obj'): isObjFile = True - if file.endswith('.jpg'): + if file1.endswith('.jpg'): isJpgFile = True - if file.endswith('.mtl'): + if file1.endswith('.mtl'): isMtlFile = True