Skip to content

Commit

Permalink
Fixed path to use package for compatibility with older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulmanann committed Sep 30, 2024
1 parent bd08913 commit c139a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h5pxblock/h5pxblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class H5PPlayerXBlock(XBlock, CompletableXBlockMixin):

def resource_string(self, path):
"""Handy helper for getting resources from our kit."""
data = importlib_resources.files(__name__).joinpath(path).read_bytes()
data = importlib_resources.files(__package__).joinpath(path).read_bytes()
return data.decode("utf8")

def render_template(self, template_path, context):
Expand Down

0 comments on commit c139a7b

Please sign in to comment.