Fixed a “TypeError” issue when extending configuration option in “platformio.ini” with the multi-line default value // Resolve #4082

This commit is contained in:
Ivan Kravets committed 2021-10-20 15:35:01 +03:00
1 parent 768681c4f2
commit 5b091b602f
3 files changed
+35 -2

No files matched your search

+4 -1
View File
@@ -295,7 +295,10 @@ class ProjectConfigBase(object):
section, option = match.group(1), match.group(2)
if section == "sysenv":
return os.getenv(option)
return self.getraw(section, option)
value = self.getraw(section, option)
if isinstance(value, list):
return "\n".join(value)
return value
def get(self, section, option, default=MISSING):
value = None