parameters: (config, section, output_dir, registered_dll_list)
docstring: Scans for DLLs in the specified section of config that are in the
    subdirectory of output_dir named SERVERS_DIR. Appends the file name of all
    matching dlls to registered_dll_list.
docstring_summary: Scans for DLLs in the specified section of config that are in the
    subdirectory of output_dir named SERVERS_DIR. Appends the file name of all
    matching dlls to registered_dll_list.
docstring_tokens: Scans for DLLs in the specified section of config that are in the subdirectory of output_dir named SERVERS_DIR . Appends the file name of all matching dlls to registered_dll_list .
function: def ScanDllsInSection(config, section, output_dir, registered_dll_list):
    """Scans for DLLs in the specified section of config that are in the
    subdirectory of output_dir named SERVERS_DIR. Appends the file name of all
    matching dlls to registered_dll_list.
    """
    for option in config.options(section):
      if option.endswith('dir'):
        continue
  
      dst = config.get(section, option)
      (x, src_folder) = os.path.split(dst)
  
      for file in glob.glob(os.path.join(output_dir, option)):
        if option.startswith(SERVERS_DIR):
          (x, file_name) = os.path.split(file)
          if file_name.lower().endswith('.dll'):
            print "Found server DLL file: " + file_name
            registered_dll_list.append(file_name)
function_tokens: def ScanDllsInSection ( config , section , output_dir , registered_dll_list ) : for option in config . options ( section ) : if option . endswith ( 'dir' ) : continue dst = config . get ( section , option ) ( x , src_folder ) = os . path . split ( dst ) for file in glob . glob ( os . path . join ( output_dir , option ) ) : if option . startswith ( SERVERS_DIR ) : ( x , file_name ) = os . path . split ( file ) if file_name . lower ( ) . endswith ( '.dll' ) : print "Found server DLL file: " + file_name registered_dll_list . append ( file_name )