mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 05:39:37 +08:00
26 lines
650 B
Python
26 lines
650 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 GCodeGzReader
|
|
|
|
i18n_catalog = i18nCatalog("cura")
|
|
|
|
def getMetaData():
|
|
file_extension = "gz" if Platform.isOSX() else "gcode.gz"
|
|
return {
|
|
"mesh_reader": [
|
|
{
|
|
"extension": file_extension,
|
|
"description": i18n_catalog.i18nc("@item:inlistbox", "Compressed G-code File")
|
|
}
|
|
]
|
|
}
|
|
|
|
|
|
def register(app):
|
|
app.addNonSliceableExtension(".gz")
|
|
return {"mesh_reader": GCodeGzReader.GCodeGzReader()}
|