forked from platformio/platformio-core
Fix encoding for Project Generator
This commit is contained in:
@ -51,8 +51,7 @@ class ProjectGenerator(object):
|
|||||||
for tpl_path in self.get_tpls():
|
for tpl_path in self.get_tpls():
|
||||||
file_name = basename(tpl_path)[:-4]
|
file_name = basename(tpl_path)[:-4]
|
||||||
with open(join(self.project_dir, file_name), "w") as f:
|
with open(join(self.project_dir, file_name), "w") as f:
|
||||||
print tpl_path
|
f.write(self._render_tpl(tpl_path).encode("utf8"))
|
||||||
f.write(self._render_tpl(tpl_path))
|
|
||||||
|
|
||||||
def _render_tpl(self, tpl_path):
|
def _render_tpl(self, tpl_path):
|
||||||
content = ""
|
content = ""
|
||||||
|
Reference in New Issue
Block a user