mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
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 = ""
|
||||||
|
@ -26,4 +26,4 @@
|
|||||||
<Filter>Source Files\src</Filter>
|
<Filter>Source Files\src</Filter>
|
||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -59,4 +59,4 @@
|
|||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
Reference in New Issue
Block a user