Ghostkeeper 984a8efe1e Allowing profile readers to read multiple file types per plugin
Both of these plugins only read one file type, but it's allowed now.

Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00

28 lines
817 B
Python

# Copyright (c) 2015 Ultimaker B.V.
# Cura is released under the terms of the AGPLv3 or higher.
from . import GCodeProfileReader
from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "GCode Profile Reader"),
"author": "Ultimaker",
"version": "1.0",
"description": catalog.i18nc("@info:whatsthis", "Provides support for importing profiles from g-code files."),
"api": 2
},
"profile_reader": [
{
"extension": "gcode",
"description": catalog.i18nc("@item:inlistbox", "G-code File")
}
]
}
def register(app):
return { "profile_reader": GCodeProfileReader.GCodeProfileReader() }