Skip to content

Commit b8a2e38

Browse files
Merge pull request #4543 from tong-zeng/master
Fix a bug in list_files_with_name
2 parents e666220 + 893191c commit b8a2e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def list_files_with_name(filename):
140140
continue
141141

142142
path = os.path.join(dirpath, filename)
143-
if os.path.isfile(filename):
143+
if os.path.isfile(path):
144144
res.append(path)
145145

146146
return res

0 commit comments

Comments
 (0)