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] diff --git a/docs/conf.py b/docs/conf.py index 63dda7a8..489c4995 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,8 +12,9 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys import os +import sys + # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the