def dyld_find(name, executable_path=None, env=None):
 name = ensure_utf8(name)
 executable_path = ensure_utf8(executable_path)
 for path in dyld_image_suffix_search(chain(dyld_override_search(name, env), dyld_executable_path_search(name, executable_path), dyld_default_search(name, env)), env):
  if os.path.isfile(path):
   return path
 raise ValueError(('dylib %s could not be found' % (name,)))

def dyld_find ( name , executable_path = None , env = None ) : name = ensure_utf8 ( name ) executable_path = ensure_utf8 ( executable_path ) for path in dyld_image_suffix_search ( chain ( dyld_override_search ( name , env ) , dyld_executable_path_search ( name , executable_path ) , dyld_default_search ( name , env ) ) , env ) : if os . path . isfile ( path ) : return path raise ValueError ( ( 'dylib %s could not be found' % ( name , ) ) )
find a library or framework using dyld semantics .