def getSelectedPluginModule(plugins):
 for plugin in plugins:
  if plugin.value:
   return archive.getModuleWithDirectoryPath(plugin.directoryPath, plugin.name)
 return None

def getSelectedPluginModule ( plugins ) : for plugin in plugins : if plugin . value : return archive . getModuleWithDirectoryPath ( plugin . directoryPath , plugin . name ) return None
get the selected plugin module .