Cura/plugins/GCodeGzWriter/__init__.py
Lipu Fei de455a9a64 Use gcode.gz as extension for GzWriter
CURA-5343

We have the custom save file dialog on OS X now so there is no need to
use .gz to bypass the extension problem on the native dialog.
2018-05-23 15:48:30 +02:00

26 lines
707 B
Python

# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from UM.i18n import i18nCatalog
from UM.Platform import Platform
from . import GCodeGzWriter
catalog = i18nCatalog("cura")
def getMetaData():
file_extension = "gcode.gz"
return {
"mesh_writer": {
"output": [{
"extension": file_extension,
"description": catalog.i18nc("@item:inlistbox", "Compressed G-code File"),
"mime_type": "application/gzip",
"mode": GCodeGzWriter.GCodeGzWriter.OutputMode.BinaryMode
}]
}
}
def register(app):
return { "mesh_writer": GCodeGzWriter.GCodeGzWriter() }