Skip to content

Commit

Permalink
Fix for 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarcireau committed Jan 15, 2024
1 parent 58042c4 commit c9cef2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charidotella/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ def timecode(value: str) -> int:

def asset_path(name: str) -> pathlib.Path:
if sys.version_info[0:3] < (3, 9, 0):
return importlib.resources.path("charidotella", f"assets/{name}").__enter__() # type: ignore
return importlib.resources.path("charidotella", "assets").__enter__() / name # type: ignore
return importlib.resources.files("charidotella").joinpath(f"assets/{name}") # type: ignore
2 changes: 1 addition & 1 deletion charidotella/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.1.0"
__version__ = "3.1.1"

0 comments on commit c9cef2a

Please sign in to comment.