def addPluginsToMenu(directoryPath, menu, pluginFileNames):
 for pluginFileName in pluginFileNames:
  ToolDialog().addPluginToMenu(menu, os.path.join(directoryPath, pluginFileName))

def addPluginsToMenu ( directoryPath , menu , pluginFileNames ) : for pluginFileName in pluginFileNames : ToolDialog ( ) . addPluginToMenu ( menu , os . path . join ( directoryPath , pluginFileName ) )
add plugins to the menu .