Skip to content

Commit

Permalink
Drop deprecated pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Sep 1, 2023
1 parent cfb9611 commit 9900a7e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions euphonic/styles/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Matplotlib stylesheets for plot styling"""
from pkg_resources import resource_filename
from importlib_resources import files

base_style = resource_filename("euphonic.styles", "base.mplstyle")
intensity_widget_style = resource_filename("euphonic.styles",
"intensity_widget.mplstyle")
base_style = files(__package__) / "base.mplstyle"
intensity_widget_style = files(__package__) / "intensity_widget.mplstyle"

0 comments on commit 9900a7e

Please sign in to comment.