Skip to content

Commit 31b63f9

Browse files
committed
Load styles from mpl-data
1 parent f27b180 commit 31b63f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/style/core.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
__all__ = ['use', 'context', 'available', 'library', 'reload_library']
2828

2929

30-
_here = os.path.abspath(os.path.dirname(__file__))
31-
BASE_LIBRARY_PATH = os.path.join(_here, 'stylelib')
30+
BASE_LIBRARY_PATH = os.path.join(mpl.get_data_path(), 'stylelib')
3231
# Users may want multiple library paths, so store a list of paths.
3332
USER_LIBRARY_PATHS = [os.path.join(mpl._get_configdir(), 'stylelib')]
3433
STYLE_EXTENSION = 'mplstyle'

0 commit comments

Comments
 (0)