8000
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 a96e944 commit 148b29dCopy full SHA for 148b29d
lib/matplotlib/__init__.py
@@ -652,12 +652,14 @@ def _get_cachedir():
652
653
get_cachedir = verbose.wrap('CACHEDIR=%s', _get_cachedir, always=False)
654
655
+
656
def _decode_filesystem_path(path):
657
if isinstance(path, bytes):
658
return path.decode(sys.getfilesystemencoding())
659
else:
660
return path
661
662
663
def _get_data_path():
664
'get the path to matplotlib data'
665
@@ -667,7 +669,7 @@ def _get_data_path():
667
669
raise RuntimeError('Path in environment MATPLOTLIBDATA not a '
668
670
'directory')
671
-
672
673
_file = _decode_filesystem_path(__file__)
674
path = os.sep.join([os.path.dirname(_file), 'mpl-data'])
675
if os.path.isdir(path):
0 commit comments