diff --git a/cbpi/__init__.py b/cbpi/__init__.py index c7a18d1..30deb30 100644 --- a/cbpi/__init__.py +++ b/cbpi/__init__.py @@ -1 +1 @@ -__version__ = "4.0.3" +__version__ = "4.0.3.a1" diff --git a/cbpi/cli.py b/cbpi/cli.py index 0698462..b640088 100644 --- a/cbpi/cli.py +++ b/cbpi/cli.py @@ -263,6 +263,10 @@ def plugin_create(): fh.write(outputText) TEMPLATE_FILE = os.path.join("/", name, "config.yaml") + operatingsystem = str(platform.system()).lower() + if operatingsystem.startswith("win"): + TEMPLATE_FILE=str(TEMPLATE_FILE).replace('\\','/') + template = templateEnv.get_template(TEMPLATE_FILE) outputText = template.render(name=name)