Improved handling of library dependencies specified in `library.json` manifest // Resolve #814

This commit is contained in:
Ivan Kravets committed 2016-10-26 18:35:43 +03:00
1 parent 2ec0bbb023
commit c2bf38f873
8 files changed
+68 -47

No files matched your search

+4 -1
View File
@@ -441,7 +441,10 @@ class PlatformBase(PlatformPackagesMixin, PlatformRunMixin):
def configure_default_packages(self, variables, targets):
# enable used frameworks
for framework in variables.get("pioframework", "").split(","):
frameworks = variables.get("pioframework", [])
if not isinstance(frameworks, list):
frameworks = frameworks.split(", ")
for framework in frameworks:
if not self.frameworks:
continue
framework = framework.lower().strip()