diff --git a/scripts/image_builder.py b/scripts/image_builder.py index 7b26c7a4..4df0c1f5 100755 --- a/scripts/image_builder.py +++ b/scripts/image_builder.py @@ -393,7 +393,8 @@ def __post_init__(self, extra_flags: str = ''): self.absolute = True # change str->desired type TODO: use decorators? - self.offset = int(self.offset, 0) + if isinstance(self.offset, str): + self.offset = int(self.offset, 0) self.size = 0x1000 # FIXME: get real defined script size