Update formatting

CURA-9224
This commit is contained in:
Jaime van Kessel 2022-09-13 11:16:02 +02:00
parent aa28f8abfb
commit a27bf8f7ed
No known key found for this signature in database
GPG key ID: C85F7A3AF1BAA7C4

View file

@ -71,14 +71,15 @@ class UFPWriter(MeshWriter):
try:
gcode = archive.getStream("/3D/model.gcode")
gcode.write(gcode_textio.getvalue().encode("UTF-8"))
archive.addRelation(virtual_path = "/3D/model.gcode", relation_type = "http://schemas.ultimaker.org/package/2018/relationships/gcode")
archive.addRelation(virtual_path = "/3D/model.gcode",
relation_type = "http://schemas.ultimaker.org/package/2018/relationships/gcode")
except EnvironmentError as e:
error_msg = catalog.i18nc("@info:error", "Can't write to UFP file:") + " " + str(e)
self.setInformation(error_msg)
Logger.error(error_msg)
return False
#Write settings
# Write settings
try:
archive.addContentType(extension="json", mime_type="application/json")
setting_textio = StringIO()