Close archive after writing

It gets flushed then and everything.

Contributes to issue CURA-4972.
This commit is contained in:
Ghostkeeper 2018-01-26 16:28:34 +01:00
parent e3e8e8b170
commit 6f833051f8
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -30,3 +30,5 @@ class UFPWriter(MeshWriter):
thumbnail.write(open(os.path.join(os.path.dirname(__file__), "kitten.png"), "rb").read())
thumbnail.close()
archive.addRelation(virtual_path = "/Metadata/thumbnail.png", file_type = "http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail")
archive.close()