Fix missing auto-uploading by default within init command

This commit is contained in:
Ivan Kravets committed 2015-01-02 20:25:30 +02:00
1 parent 8686936a07
commit 418b693fe0
2 files changed
+9 -4

No files matched your search

+2 -2
View File
@@ -89,8 +89,8 @@ def fill_project_envs(project_file, board_types, disable_auto_uploading):
content.append("framework = %s" % framework)
content.append("board = %s" % type_)
content.append("%stargets = upload" % "# " if disable_auto_uploading
else "")
content.append("%stargets = upload" % ("# " if disable_auto_uploading
else ""))
with open(project_file, "a") as f:
f.write("\n".join(content))