From 07e2d54d8c5623efef7d3f18c61d855d5c6ef16e Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 19 Sep 2018 22:35:16 -0400 Subject: [PATCH] FIX: remove cwd from mac font path search While including the cwd makes sense at first glance, it does not because a) the result is cached so the next time your cwd will be different but we will not find those files b) the time it takes to search all the files is causing prolems c) the other 2 platforms do not do this The comma was introduced to fix what looked like a bug (implicit string concatenation instead of adding the empty string to the list) in #11963. Original code come in via 479934197664662059ed0b8b2f46c5b10776176e in 2011. closes #12176 --- lib/matplotlib/font_manager.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py index ca0fe710a7e5..b95a9f1b1ee6 100644 --- a/lib/matplotlib/font_manager.py +++ b/lib/matplotlib/font_manager.py @@ -129,7 +129,6 @@ "/System/Library/Fonts/", # fonts installed via MacPorts "/opt/local/share/fonts", - "", ] if not USE_FONTCONFIG and sys.platform != 'win32':