From 76dbb8377043ca281c38ebd845aeb0d26f973cca Mon Sep 17 00:00:00 2001 From: Raphael Krupinski <10319569-mattesilver@users.noreply.gitlab.com> Date: Fri, 2 Feb 2024 17:17:40 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Handle=20paths=20in=20jinja=20on?= =?UTF-8?q?=20windows.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rybak/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rybak/__init__.py b/src/rybak/__init__.py index ac27206..bda3be8 100644 --- a/src/rybak/__init__.py +++ b/src/rybak/__init__.py @@ -3,7 +3,7 @@ 'render', ] -from pathlib import Path +from pathlib import Path, PosixPath from typing import Any, Iterable, Mapping, Optional, Type, Union from ._types import TemplateData @@ -46,6 +46,6 @@ def render( excluded=excluded, remove_suffixes=remove_suffixes, ), - Path(), - Path(), + PosixPath(), + PosixPath(), ).render(data)