Skip to content

Commit dd5513e

Browse files
committed
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
1 parent 0202f3b commit dd5513e

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
@@ -142,7 +142,7 @@
142142
""
143143
]
144144

145-
if not USE_FONTCONFIG:
145+
if not USE_FONTCONFIG and sys.paltform != 'win32':
146146
home = os.environ.get('HOME')
147147
if home is not None:
148148
# user fonts on OSX

0 commit comments

Comments
 (0)