mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
CURA-4557 setting up plugin
This commit is contained in:
parent
d0609e97e4
commit
50f9548da0
3 changed files with 69 additions and 0 deletions
23
plugins/ModelChecker/__init__.py
Normal file
23
plugins/ModelChecker/__init__.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Copyright (c) 2017 Ultimaker B.V.
|
||||
# This example is released under the terms of the AGPLv3 or higher.
|
||||
|
||||
from . import ModelChecker
|
||||
|
||||
## Defines additional metadata for the plug-in.
|
||||
#
|
||||
# Some types of plug-ins require additional metadata, such as which file types
|
||||
# they are able to read or the name of the tool they define. In the case of
|
||||
# the "Extension" type plug-in, there is no additional metadata though.
|
||||
def getMetaData():
|
||||
return {}
|
||||
|
||||
## Lets Uranium know that this plug-in exists.
|
||||
#
|
||||
# This is called when starting the application to find out which plug-ins
|
||||
# exist and what their types are. We need to return a dictionary mapping from
|
||||
# strings representing plug-in types (in this case "extension") to objects
|
||||
# that inherit from PluginObject.
|
||||
#
|
||||
# \param app The application that the plug-in needs to register with.
|
||||
def register(app):
|
||||
return {"extension": ModelChecker.ModelChecker()}
|
Loading…
Add table
Add a link
Reference in a new issue