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 616f473 commit dd7f7c0Copy full SHA for dd7f7c0
lib/matplotlib/__init__.py
@@ -523,7 +523,10 @@ def _get_home():
523
http://mail.python.org/pipermail/python-list/2005-February/325395.html
524
"""
525
try:
526
- path = os.path.expanduser(b"~").decode(sys.getfilesystemencoding())
+ if six.PY2 and sys.platform == 'win32':
527
+ path = os.path.expanduser(b"~").decode(sys.getfilesystemencoding())
528
+ else:
529
+ path = os.path.expanduser("~")
530
except ImportError:
531
# This happens on Google App Engine (pwd module is not present).
532
pass
0 commit comments