Fix issue when development platform doesn't support frameworks

This commit is contained in:
Ivan Kravets
2016-07-06 15:27:46 +03:00
parent b043a2258f
commit 13112ad6d4
3 changed files with 5 additions and 3 deletions

View File

@ -17,8 +17,8 @@ from __future__ import absolute_import
import atexit import atexit
import re import re
from glob import glob from glob import glob
from os import environ, listdir, remove from os import environ, remove
from os.path import isdir, isfile, join from os.path import isfile, join
from platformio import util from platformio import util

View File

@ -461,6 +461,8 @@ class PlatformBase(PlatformPackagesMixin, PlatformRunMixin):
def configure_default_packages(self, variables, targets): def configure_default_packages(self, variables, targets):
# enbale used frameworks # enbale used frameworks
for framework in variables.get("framework", "").split(","): for framework in variables.get("framework", "").split(","):
if not self.frameworks:
continue
framework = framework.lower().strip() framework = framework.lower().strip()
if not framework or framework not in self.frameworks: if not framework or framework not in self.frameworks:
continue continue