__init__.py 753 B

1234567891011121314151617181920212223242526
  1. # Copyright (c) 2018 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from UM.i18n import i18nCatalog
  4. from UM.Platform import Platform
  5. from . import GCodeGzWriter
  6. catalog = i18nCatalog("cura")
  7. def getMetaData():
  8. file_extension = "gcode.gz"
  9. return {
  10. "mesh_writer": {
  11. "output": [{
  12. "extension": file_extension,
  13. "description": catalog.i18nc("@item:inlistbox", "Compressed G-code File"),
  14. "mime_type": "application/gzip",
  15. "mode": GCodeGzWriter.GCodeGzWriter.OutputMode.BinaryMode,
  16. "hide_in_file_dialog": True,
  17. }]
  18. }
  19. }
  20. def register(app):
  21. return { "mesh_writer": GCodeGzWriter.GCodeGzWriter() }