From 686ce0c0e220c73b32a1d29ae3d48c6b336b024f Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 4 Dec 2022 15:35:45 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Fix=20CI=20Test=20clean=20step?= =?UTF-8?q?=20(2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buildroot/share/PlatformIO/scripts/pioutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildroot/share/PlatformIO/scripts/pioutil.py b/buildroot/share/PlatformIO/scripts/pioutil.py index cc3db33df4..18e6dba928 100644 --- a/buildroot/share/PlatformIO/scripts/pioutil.py +++ b/buildroot/share/PlatformIO/scripts/pioutil.py @@ -6,7 +6,8 @@ def is_pio_build(): from SCons.Script import DefaultEnvironment env = DefaultEnvironment() - return not env.IsIntegrationDump() and not env.IsCleanTarget() + if "IsCleanTarget" in dir(env) and env.IsCleanTarget(): return False + return not env.IsIntegrationDump() def get_pio_version(): from platformio import util