Skip to content

Commit

Permalink
applying str to paths
Browse files Browse the repository at this point in the history
  • Loading branch information
fondbcn committed Jan 27, 2024
1 parent d7893c9 commit 38be4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,9 @@ def __repr__(self):


def pkg_resources(package, resource):
"""Return the resource based on the python version"""
"""Return the resource based on the python version."""
if sys.version_info.minor <= 8:
return resources.path(package, resource)
return str(resources.path(package, resource))
else:
return str(resources.files(package).joinpath(resource))

Expand Down

0 comments on commit 38be4ef

Please sign in to comment.