Skip to content

Commit

Permalink
replace / by os.path.sep
Browse files Browse the repository at this point in the history
Solves plone#531 and plone#510
  • Loading branch information
me-kell authored and me-kell committed Nov 25, 2022
1 parent 9bf1efe commit c32dafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bobtemplates/plone/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit c32dafb

Please sign in to comment.