diff --git a/openedxscorm/scormxblock.py b/openedxscorm/scormxblock.py index d7af224..e2116b0 100644 --- a/openedxscorm/scormxblock.py +++ b/openedxscorm/scormxblock.py @@ -200,7 +200,10 @@ def initialize_student_info(self): @staticmethod def resource_string(path): """Handy helper for getting static resources from our kit.""" - data = importlib_resources.files(__name__).joinpath(path).read_bytes() + try: + data = importlib_resources.files(__name__).joinpath(path).read_bytes() + except TypeError: + data = importlib_resources.files(__package__).joinpath(path).read_bytes() return data.decode("utf8") def author_view(self, context=None):