From c32dafb0f344ae891dbdfcb202b3e601f92ca724 Mon Sep 17 00:00:00 2001 From: me-kell Date: Thu, 24 Nov 2022 16:12:12 +0100 Subject: [PATCH] replace `/` by `os.path.sep` Solves https://github.com/plone/bobtemplates.plone/issues/531 and https://github.com/plone/bobtemplates.plone/issues/510 --- bobtemplates/plone/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bobtemplates/plone/base.py b/bobtemplates/plone/base.py index 3232e24a..d3afd119 100644 --- a/bobtemplates/plone/base.py +++ b/bobtemplates/plone/base.py @@ -434,7 +434,7 @@ def base_prepare_renderer(configurator): raise MrBobError("No setup.py found in path!\n") configurator.variables["package.dottedname"] = configurator.variables[ "package.root_folder" - ].split("/")[-1] + ].split(os.path.sep)[-1] configurator.variables["package.namespace"] = configurator.variables[ "package.dottedname" ].split(".")[0]