From 09e1351ef43ac71edd446c7141061ce20d5ffb8a Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 21 Nov 2014 15:34:45 -0500 Subject: [PATCH] MNT : add guard to not look up HOME env on windows This variable should not be defined on windows so don't even bother looking at it. addresses #3804 --- lib/matplotlib/font_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py index 3d33a28ce923..9a7c792102cd 100644 --- a/lib/matplotlib/font_manager.py +++ b/lib/matplotlib/font_manager.py @@ -142,7 +142,7 @@ "" ] -if not USE_FONTCONFIG: +if not USE_FONTCONFIG and sys.platform != 'win32': home = os.environ.get('HOME') if home is not None: # user fonts on OSX