mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Fix issue when development platform doesn't support frameworks
This commit is contained in:
2
examples
2
examples
Submodule examples updated: a5498135ba...6c0a7e4458
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user