__init__.py 650 B

12345678910111213141516171819202122232425
  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 GCodeGzReader
  6. i18n_catalog = i18nCatalog("cura")
  7. def getMetaData():
  8. file_extension = "gz" if Platform.isOSX() else "gcode.gz"
  9. return {
  10. "mesh_reader": [
  11. {
  12. "extension": file_extension,
  13. "description": i18n_catalog.i18nc("@item:inlistbox", "Compressed G-code File")
  14. }
  15. ]
  16. }
  17. def register(app):
  18. app.addNonSliceableExtension(".gz")
  19. return {"mesh_reader": GCodeGzReader.GCodeGzReader()}