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

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

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()