2016-04-04 11:26:01 +00:00
|
|
|
--- a/lib/matplotlib/__init__.py 2016-04-04 12:54:26.427194940 +0200
|
|
|
|
+++ b/lib/matplotlib/__init__.py 2016-04-04 12:56:12.662590255 +0200
|
2017-09-27 05:29:13 +00:00
|
|
|
@@ -635,9 +635,12 @@ def _get_data_path():
|
2014-01-28 16:50:22 +00:00
|
|
|
|
2016-04-04 11:26:01 +00:00
|
|
|
_file = _decode_filesystem_path(__file__)
|
|
|
|
path = os.sep.join([os.path.dirname(_file), 'mpl-data'])
|
2014-01-28 16:50:22 +00:00
|
|
|
+ path = '/usr/share/matplotlib/mpl-data'
|
|
|
|
if os.path.isdir(path):
|
|
|
|
return path
|
|
|
|
|
|
|
|
+ raise RuntimeError('Could not find the matplotlib data files')
|
|
|
|
+
|
|
|
|
# setuptools' namespace_packages may highjack this init file
|
|
|
|
# so need to try something known to be in matplotlib, not basemap
|
|
|
|
import matplotlib.afm
|
2017-09-27 05:29:13 +00:00
|
|
|
@@ -731,7 +734,7 @@ def matplotlib_fname():
|
|
|
|
yield matplotlibrc
|
|
|
|
yield os.path.join(matplotlibrc, 'matplotlibrc')
|
|
|
|
yield os.path.join(_get_configdir(), 'matplotlibrc')
|
|
|
|
- yield os.path.join(get_data_path(), 'matplotlibrc')
|
|
|
|
+ yield '/etc/matplotlibrc'
|
2014-01-28 16:50:22 +00:00
|
|
|
|
2017-09-27 05:29:13 +00:00
|
|
|
for fname in gen_candidates():
|
|
|
|
if os.path.isfile(fname):
|