diff --git a/core/SConscript.prodtest b/core/SConscript.prodtest index e1b7c2f79..22a6626d0 100644 --- a/core/SConscript.prodtest +++ b/core/SConscript.prodtest @@ -196,9 +196,9 @@ obj_program.extend(env.Object(source=SOURCE_HAL)) MODEL_IDENTIFIER = tools.get_model_identifier(TREZOR_MODEL) -if (vh := ARGUMENTS.get("VENDOR_HEADER", None)) is not None: +if (vh := ARGUMENTS.get("VENDOR_HEADER", None)): VENDORHEADER = vh -elif (vh := os.environ.get("VENDOR_HEADER", None)) is not None: +elif (vh := os.environ.get("VENDOR_HEADER", None)): # TODO looking at envvars in a build script is not very nice. But justifiable in case # of vendor header which does not affect reproducibility of the build. Nonetheless, # we should figure out a cleaner way to pass in this argument, without having to teach