File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ locations, in the following order:
56
56
1. :file: `matplotlibrc ` in the current working directory, usually used for
57
57
specific customizations that you do not want to apply elsewhere.
58
58
59
- 2. :file: `$MATPLOTLIBRC/matplotlibrc `.
59
+ 2. :file: `$MATPLOTLIBRC ` if it is a file, else :file: ` $MATPLOTLIBRC /matplotlibrc `.
60
60
61
61
3. It next looks in a user-specific place, depending on your platform:
62
62
Original file line number Diff line number Diff line change @@ -755,6 +755,8 @@ def matplotlib_fname():
755
755
756
756
- `$PWD/matplotlibrc`
757
757
758
+ - `$MATPLOTLIBRC` if it is a file
759
+
758
760
- `$MATPLOTLIBRC/matplotlibrc`
759
761
760
762
- `$MPLCONFIGDIR/matplotlibrc`
@@ -787,6 +789,8 @@ def matplotlib_fname():
787
789
if 'MATPLOTLIBRC' in os .environ :
788
790
path = os .environ ['MATPLOTLIBRC' ]
789
791
if os .path .exists (path ):
792
+ if os .path .isfile (path ):
793
+ return path
790
794
fname = os .path .join (path , 'matplotlibrc' )
791
795
if os .path .exists (fname ):
792
796
return fname
You can’t perform that action at this time.
0 commit comments