def makeCompFunctionFiles(out_path, generateFor=generateFor, specialBuilders=specialBuilders):
 skips = []
 for (cmd_name, module_name, class_name) in generateFor:
  if (module_name is None):
   f = _openCmdFile(out_path, cmd_name)
   f.close()
   continue
  try:
   m = __import__(('%s' % (module_name,)), None, None, class_name)
   f = _openCmdFile(out_path, cmd_name)
   o = getattr(m, class_name)()
   if (cmd_name in specialBuilders):
    b = specialBuilders[cmd_name](cmd_name, o, f)
    b.write()
   else:
    b = Builder(cmd_name, o, f)
    b.write()
  except Exception as e:
   skips.append((cmd_name, e))
   continue
 return skips

def makeCompFunctionFiles ( out_path , generateFor = generateFor , specialBuilders = specialBuilders ) : skips = [ ] for ( cmd_name , module_name , class_name ) in generateFor : if ( module_name is None ) : f = _openCmdFile ( out_path , cmd_name ) f . close ( ) continue try : m = __import__ ( ( '%s' % ( module_name , ) ) , None , None , class_name ) f = _openCmdFile ( out_path , cmd_name ) o = getattr ( m , class_name ) ( ) if ( cmd_name in specialBuilders ) : b = specialBuilders [ cmd_name ] ( cmd_name , o , f ) b . write ( ) else : b = Builder ( cmd_name , o , f ) b . write ( ) except Exception as e : skips . append ( ( cmd_name , e ) ) continue return skips
generate completion function files in the given directory for all twisted commands @type out_path: c{str} .