def getSelectedPluginName(plugins):
 for plugin in plugins:
  if plugin.value:
   return plugin.name
 return ''

def getSelectedPluginName ( plugins ) : for plugin in plugins : if plugin . value : return plugin . name return ''
get the selected plugin name .