def path_joiner(target, search_paths):
 return (os.path.join(path, target) for path in search_paths)

def path_joiner ( target , search_paths ) : return ( os . path . join ( path , target ) for path in search_paths )
create a generator that joins target to each search path .