File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,8 @@ def get_cachedir():
589
589
@_logged_cached ('matplotlib data path: %s' )
590
590
def get_data_path ():
591
591
"""Return the path to Matplotlib data."""
592
- return str (Path (__file__ ).with_name ("mpl-data" ))
592
+ return str (Path (__file__ ).parent .parent .parent .parent .parent /
593
+ 'share/matplotlib/mpl-data' )
593
594
594
595
595
596
def matplotlib_fname ():
@@ -609,6 +610,7 @@ def matplotlib_fname():
609
610
is not defined)
610
611
- On other platforms,
611
612
- ``$HOME/.matplotlib/matplotlibrc`` if ``$HOME`` is defined
613
+ - ``/etc/matplotlibrc``
612
614
- Lastly, it looks in ``$MATPLOTLIBDATA/matplotlibrc``, which should always
613
615
exist.
614
616
"""
@@ -627,6 +629,7 @@ def gen_candidates():
627
629
yield matplotlibrc
628
630
yield os .path .join (matplotlibrc , 'matplotlibrc' )
629
631
yield os .path .join (get_configdir (), 'matplotlibrc' )
632
+ yield '/etc/matplotlibrc'
630
633
yield os .path .join (get_data_path (), 'matplotlibrc' )
631
634
632
635
for fname in gen_candidates ():
You can’t perform that action at this time.
0 commit comments