def generate_library_search_paths(lib, extra_dirs=COMMON_LIB_PATHS, ld_so_conf_filename=Ldconfig.LD_SO_CONF):
 if (os.sep in lib):
  paths = [lib]
 else:
  l = Ldconfig()
  search_paths = l.ldconfig(ld_so_conf_filename, extra_dirs)
  paths = path_joiner(lib, search_paths)
 return paths

def generate_library_search_paths ( lib , extra_dirs = COMMON_LIB_PATHS , ld_so_conf_filename = Ldconfig . LD_SO_CONF ) : if ( os . sep in lib ) : paths = [ lib ] else : l = Ldconfig ( ) search_paths = l . ldconfig ( ld_so_conf_filename , extra_dirs ) paths = path_joiner ( lib , search_paths ) return paths
generate full paths of potential locations of a given library file based on common_lib_paths .