8000 use matplotlib._get_configdir() rather than manually setting path to … · matplotlib/matplotlib@333591d · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 333591d

Browse files
committed
use matplotlib._get_configdir() rather than manually setting path to config dir
1 parent 501b907 commit 333591d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/style/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
_here = os.path.abspath(os.path.dirname(__file__))
3131
BASE_LIBRARY_PATH = os.path.join(_here, 'stylelib')
3232
# Users may want multiple library paths, so store a list of paths.
33-
USER_LIBRARY_PATHS = [os.path.join('~', '.matplotlib', 'stylelib'),
34-
os.path.join('~', '.config', 'matplotlib', 'stylelib')]
33+
USER_LIBRARY_PATHS = [os.path.join(mpl._get_configdir(), 'stylelib')]
3534
STYLE_EXTENSION = 'mplstyle'
3635
STYLE_FILE_PATTERN = re.compile('([\S]+).%s$' % STYLE_EXTENSION)
3736

0 commit comments

Comments
 (0)
0