Skip to content

Commit 50c46d8

Browse files
sandrotosiQuLogic
authored andcommitted
matplotlibrc path search fix
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 1392cbe commit 50c46d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ def matplotlib_fname():
613613
is not defined)
614614
- On other platforms,
615615
- ``$HOME/.matplotlib/matplotlibrc`` if ``$HOME`` is defined
616+
- ``/etc/matplotlibrc``
616617
- Lastly, it looks in ``$MATPLOTLIBDATA/matplotlibrc``, which should always
617618
exist.
618619
"""
@@ -631,6 +632,7 @@ def gen_candidates():
631632
yield matplotlibrc
632633
yield os.path.join(matplotlibrc, 'matplotlibrc')
633634
yield os.path.join(get_configdir(), 'matplotlibrc')
635+
yield '/etc/matplotlibrc'
634636
yield os.path.join(get_data_path(), 'matplotlibrc')
635637

636638
for fname in gen_candidates():

0 commit comments

Comments
 (0)