Skip to content

Commit

Permalink
Remove pkg_resources from html.py (#15)
Browse files Browse the repository at this point in the history
Resolves the ModuleNotFound error with pkg_resources that prevented loading the module on some systems, by removing the dependency and using the new importlib.resources API instead.
  • Loading branch information
jakewins authored Jan 20, 2025
1 parent 4417b70 commit 2f68543
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tracerite/html.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import pkg_resources
from html5tagger import E

from .trace import extract_chain

style = pkg_resources.resource_string(__name__, "style.css").decode()
from importlib.resources import files

style = files(__package__).joinpath("style.css").read_text(encoding="UTF-8")

detail_show = "{display: inherit}"

Expand Down

0 comments on commit 2f68543

Please sign in to comment.