Thomas Spura 760f924
--- a/lib/matplotlib/__init__.py	2016-04-04 12:54:26.427194940 +0200
Thomas Spura 760f924
+++ b/lib/matplotlib/__init__.py	2016-04-04 12:56:12.662590255 +0200
Thomas Spura 760f924
@@ -682,9 +682,12 @@
12e8a62
 
Thomas Spura 760f924
     _file = _decode_filesystem_path(__file__)
Thomas Spura 760f924
     path = os.sep.join([os.path.dirname(_file), 'mpl-data'])
12e8a62
+    path = '/usr/share/matplotlib/mpl-data'
12e8a62
     if os.path.isdir(path):
12e8a62
         return path
12e8a62
 
12e8a62
+    raise RuntimeError('Could not find the matplotlib data files')
12e8a62
+
12e8a62
     # setuptools' namespace_packages may highjack this init file
12e8a62
     # so need to try something known to be in matplotlib, not basemap
12e8a62
     import matplotlib.afm
Thomas Spura 760f924
@@ -812,7 +815,7 @@
dd3b8ab
                     home, '.matplotlib', 'matplotlibrc')
12e8a62
             return fname
12e8a62
 
12e8a62
-    path = get_data_path()  # guaranteed to exist or raise
12e8a62
+    path = '/etc'  # guaranteed to exist or raise
12e8a62
     fname = os.path.join(path, 'matplotlibrc')
12e8a62
     if not os.path.exists(fname):
12e8a62
         warnings.warn('Could not find matplotlibrc; using defaults')