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