diff --git a/nikola/utils.py b/nikola/utils.py index 19a4f49d8..e8efba290 100644 --- a/nikola/utils.py +++ b/nikola/utils.py @@ -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))