From 38be4efa59e8d92e37a0f87eebeab54ee552bbd0 Mon Sep 17 00:00:00 2001 From: fondbcn Date: Sat, 27 Jan 2024 20:59:37 +0100 Subject: [PATCH] applying str to paths --- nikola/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))