mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +01:00
fix create plugin under windows
This commit is contained in:
parent
fda8042ff1
commit
d8ba8c0ac5
2 changed files with 5 additions and 1 deletions
|
@ -1 +1 @@
|
||||||
__version__ = "4.0.3"
|
__version__ = "4.0.3.a1"
|
||||||
|
|
|
@ -263,6 +263,10 @@ def plugin_create():
|
||||||
fh.write(outputText)
|
fh.write(outputText)
|
||||||
|
|
||||||
TEMPLATE_FILE = os.path.join("/", name, "config.yaml")
|
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)
|
template = templateEnv.get_template(TEMPLATE_FILE)
|
||||||
outputText = template.render(name=name)
|
outputText = template.render(name=name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue