We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 638adf4 commit df4e10aCopy full SHA for df4e10a
lib/matplotlib/__init__.py
@@ -506,7 +506,10 @@ def _get_home():
506
:see: http://mail.python.org/pipermail/python-list/2005-February/325395.html
507
"""
508
try:
509
- path = os.path.expanduser("~")
+ if six.PY2 and sys.platform == 'win32':
510
+ path = os.path.expanduser(b"~").decode(sys.getfilesystemencoding())
511
+ else:
512
+ path = os.path.expanduser("~")
513
except ImportError:
514
# This happens on Google App Engine (pwd module is not present).
515
pass
0 commit comments