Skip to content

Commit 14a75b7

Browse files
authored
Fix that font files never pass the test on Win
1 parent ab3d63d commit 14a75b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/font_manager.py

+1-1
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)