8000 Update make.py · matplotlib/matplotlib@070fbff · GitHub
[go: up one dir, main page]

Skip to content

Commit 070fbff

Browse files
committed
Update make.py
Fallback to default "matplotlibrc" instead user's "matplotlibrc"
1 parent e2e6496 commit 070fbff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/make.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def html(buildername='html'):
4141
check_build()
4242

4343
rc = '../lib/matplotlib/mpl-data/matplotlibrc'
44-
active_rc = matplotlib.matplotlib_fname()
45-
if not os.path.exists(rc) and os.path.exists(active_rc):
46-
rc = active_rc
44+
default_rc = os.path.join(matplotlib._get_data_path(), 'matplotlibrc')
45+
if not os.path.exists(rc) and os.path.exists(default_rc):
46+
rc = default_rc
4747
copy_if_out_of_date(rc, '_static/matplotlibrc')
4848

4949
if small_docs:

0 commit comments

Comments
 (0)
0