aboutsummaryrefslogtreecommitdiff
path: root/modules/scripts.py
diff options
context:
space:
mode:
authorTong Zeng <tong.zeng@geely.com>2022-11-10 10:34:03 +0800
committerTong Zeng <tong.zeng@geely.com>2022-11-10 10:34:03 +0800
commit893191cab24cc3511135495d6d2c8d81f5ec63a3 (patch)
treedffeb8aed34cc57d6b24f257d01ff3113306ea5f /modules/scripts.py
parentac085628540d0ec6a988fad93f5b8f2154209571 (diff)
fix a bug in list_files_with_name
Diffstat (limited to 'modules/scripts.py')
-rw-r--r--modules/scripts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/scripts.py b/modules/scripts.py
index 637b2329..22d8908b 100644
--- a/modules/scripts.py
+++ b/modules/scripts.py
@@ -140,7 +140,7 @@ def list_files_with_name(filename):
continue
path = os.path.join(dirpath, filename)
- if os.path.isfile(filename):
+ if os.path.isfile(path):
res.append(path)
return res