def getSelectedPluginModuleFromPath(filePath, plugins):
 for plugin in plugins:
  if plugin.value:
   return gcodec.getModuleFromPath(plugin.name, filePath)
 return None

def getSelectedPluginModuleFromPath ( filePath , plugins ) : for plugin in plugins : if plugin . value : return gcodec . getModuleFromPath ( plugin . name , filePath ) return None
get the selected plugin module .