Skip to content

Commit 893191c

Browse files
author
Tong Zeng
committed
fix a bug in list_files_with_name
1 parent ac08562 commit 893191c

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)