diff --git a/scripts/pio_extra_script_helper.py b/scripts/pio_extra_script_helper.py index 851073f..edc9b70 100644 --- a/scripts/pio_extra_script_helper.py +++ b/scripts/pio_extra_script_helper.py @@ -40,6 +40,7 @@ def get_config_value_as_list(self, name: str) -> list[str]: while my `custom_system_packages` is a string… https://community.platformio.org/t/custom-platformio-ini-options-as-list-str-not-str/34380 """ + return [ value for value @@ -51,12 +52,14 @@ def get_config_value(self, name: str, default: str = ''): """ https://docs.platformio.org/en/latest/scripting/examples/platformio_ini_custom_options.html """ + return self.env.GetProjectOption(name, default=default) def get_platform(self) -> PlatformBase: """ The platform is the same for all the envs. """ + return self.env.PioPlatform() def list_available_packages(self) -> list: @@ -77,6 +80,7 @@ def mark_packages_as_system(self, packages: list[str]) -> None: """ See :meth:`~pio_extra_script_helper.Helper.mark_package_as_system` """ + for package in packages: self.mark_package_as_system(package)