replace_part Method
Replaces the contents of the specified part in the package.
Syntax
def replace_part() -> None: ...
Remarks
If the part specified by the part_name property exists, the corresponding physical file will be replaced with the contents of the part_data property. The package file will be modified in place right away.
If the part doesn't exists, it's stored in interleaved format, or part_data is null or empty, an error will be raised.