__init__.py 557 B

123456789101112131415161718192021
  1. # Copyright (c) 2018 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from . import GCodeGzReader
  4. from UM.i18n import i18nCatalog
  5. i18n_catalog = i18nCatalog("cura")
  6. def getMetaData():
  7. return {
  8. "mesh_reader": [
  9. {
  10. "extension": "gcode.gz",
  11. "description": i18n_catalog.i18nc("@item:inlistbox", "Compressed G-code File")
  12. }
  13. ]
  14. }
  15. def register(app):
  16. app.addNonSliceableExtension(".gcode.gz")
  17. return { "mesh_reader": GCodeGzReader.GCodeGzReader() }