@@ -664,9 +664,9 @@ def _get_data_path():
664
664
return path
665
665
666
666
if hasattr (__file__ , 'decode' ):
667
- _file = __file__ .decode (sys .getfilesystemencoding ())
667
+ _file = __file__ .decode (sys .getfilesystemencoding ())
668
668
else :
669
- _file = __file__
669
+ _file = __file__
670
670
path = os .sep .join ([os .path .dirname (_file ), 'mpl-data' ])
671
671
if os .path .isdir (path ):
672
672
return path
@@ -675,19 +675,19 @@ def _get_data_path():
675
675
# so need to try something known to be in matplotlib, not basemap
676
676
import matplotlib .afm
677
677
if hasattr (matplotlib .afm .__file__ , 'decode' ):
678
- _file = matplotlib .afm .__file__ .decode (sys .getfilesystemencoding ())
678
+ _file = matplotlib .afm .__file__ .decode (sys .getfilesystemencoding ())
679
679
else :
680
- _file = matplotlib .afm .__file__
680
+ _file = matplotlib .afm .__file__
681
681
path = os .sep .join ([os .path .dirname (_file ), 'mpl-data' ])
682
682
if os .path .isdir (path ):
683
683
return path
684
684
685
685
# py2exe zips pure python, so still need special check
686
686
if getattr (sys , 'frozen' , None ):
687
687
if hasattr (sys .executable , 'decode' ):
688
- _file = sys .executable .decode (sys .getfilesystemencoding ())
688
+ _file = sys .executable .decode (sys .getfilesystemencoding ())
689
689
else :
690
- _file = sys .executable
690
+ _file = sys .executable
691
691
exe_path = os .path .dirname (_file )
692
692
path = os .path .join (exe_path , 'mpl-data' )
693
693
if os .path .isdir (path ):
0 commit comments