diff --git a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/export_binaries.py b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/export_binaries.py index af80aac638..054df24bc9 100644 --- a/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/export_binaries.py +++ b/targets/TARGET_Cypress/TARGET_PSOC6/TARGET_FUTURE_SEQUANA_PSA/prebuilt/export_binaries.py @@ -28,6 +28,8 @@ for f in fnmatch.filter(os.listdir(DELIVERY_DIR), '*.hex'): if os.path.exists(test_directory): target_dir = os.path.join(test_directory, 'TARGET_FUTURE_SEQUANA_PSA', f) + if not os.path.exists(os.path.join(test_directory, 'TARGET_FUTURE_SEQUANA_PSA')): + continue else: target_dir = os.path.join(SCRIPT_DIR, f)