Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fedb162

Browse files
authored
Merge pull request #24641 from almarklein/patch-1
Fix that font files never pass the test on Win
2 parents 046cd46 + 14a75b7 commit fedb162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def list_fonts(directory, extensions):
189189
if sys.platform == 'win32' and directory == win32FontDirectory():
190190
return [os.path.join(directory, filename)
191191
for filename in os.listdir(directory)
192-
if os.path.isfile(filename)]
192+
if os.path.isfile(os.path.join(directory, filename))]
193193
else:
194194
return [os.path.join(dirpath, filename)
195195
# os.walk ignores access errors, unlike Path.glob.

0 commit comments

Comments
 (0)