Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions preliz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@

# add PreliZ's styles to matplotlib's styles
_preliz_style_path = os_path.join(os_path.dirname(__file__), "styles")
style.core.USER_LIBRARY_PATHS.append(_preliz_style_path)
style.core.reload_library()
if hasattr(style, "USER_LIBRARY_PATHS"):
style.USER_LIBRARY_PATHS.append(_preliz_style_path)
else:
style.core.USER_LIBRARY_PATHS.append(_preliz_style_path)
style.reload_library()

# clean namespace
del os_path, mpl_rcParams, _preliz_style_path
Loading