File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -635,9 +635,12 @@ def _get_data_path():
635
635
636
636
_file = _decode_filesystem_path (__file__ )
637
637
path = os .sep .join ([os .path .dirname (_file ), 'mpl-data' ])
638
+ path = '/usr/share/matplotlib/mpl-data'
638
639
if os .path .isdir (path ):
639
640
return path
640
641
642
+ raise RuntimeError ('Could not find the matplotlib data files' )
643
+
641
644
# setuptools' namespace_packages may highjack this init file
642
645
# so need to try something known to be in matplotlib, not basemap
643
646
import matplotlib .afm
@@ -731,7 +734,7 @@ def gen_candidates():
731
734
yield matplotlibrc
732
735
yield os .path .join (matplotlibrc , 'matplotlibrc' )
733
736
yield os .path .join (_get_configdir (), 'matplotlibrc' )
734
- yield os . path . join ( get_data_path (), ' matplotlibrc')
737
+ yield '/etc/ matplotlibrc'
735
738
736
739
for fname in gen_candidates ():
737
740
if os .path .isfile (fname ):
You can’t perform that action at this time.
0 commit comments