from . import CuraEngineBackend

from UM.Preferences import Preferences

def getMetaData():
    return { "name": "CuraEngine Backend", "type": "Backend" }

def register(app):
    Preferences.addPreference("BackendLocation","../PinkUnicornEngine/CuraEngine")
    return CuraEngineBackend.CuraEngineBackend()


from . import CuraEngineBackend

from UM.Preferences import Preferences

def getMetaData():
    return {
        'type': 'backend',
        'plugin': {
            'name': "CuraEngine Backend"
        }
    }

def register(app):
    Preferences.addPreference("BackendLocation","../PinkUnicornEngine/CuraEngine")
    return CuraEngineBackend.CuraEngineBackend()


Update plugin metadata to the new format
Update plugin metadata to the new format

  from . import CuraEngineBackend
  
  from UM.Preferences import Preferences
  
  def getMetaData():
-     return { "name": "CuraEngine Backend", "type": "Backend" }
+     return {
+         'type': 'backend',
+         'plugin': {
+             'name': "CuraEngine Backend"
+         }
+     }
  
  def register(app):
      Preferences.addPreference("BackendLocation","../PinkUnicornEngine/CuraEngine")
      return CuraEngineBackend.CuraEngineBackend()
  
  
Update plugin metadata to the new format
## Code Before:
from . import CuraEngineBackend

from UM.Preferences import Preferences

def getMetaData():
    return { "name": "CuraEngine Backend", "type": "Backend" }

def register(app):
    Preferences.addPreference("BackendLocation","../PinkUnicornEngine/CuraEngine")
    return CuraEngineBackend.CuraEngineBackend()


## Instruction:
Update plugin metadata to the new format
## Code After:
from . import CuraEngineBackend

from UM.Preferences import Preferences

def getMetaData():
    return {
        'type': 'backend',
        'plugin': {
            'name': "CuraEngine Backend"
        }
    }

def register(app):
    Preferences.addPreference("BackendLocation","../PinkUnicornEngine/CuraEngine")
    return CuraEngineBackend.CuraEngineBackend()

