mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:15:56 +08:00
Close archive after writing
It gets flushed then and everything. Contributes to issue CURA-4972.
This commit is contained in:
parent
e3e8e8b170
commit
6f833051f8
@ -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()
|
Loading…
x
Reference in New Issue
Block a user