Thanks to visit codestin.com Credit goes to github.com
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.
2 parents c439104 + dd7f7c0 commit 95a9ef8Copy full SHA for 95a9ef8
1 file changed
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("~")
+ 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