def get_searchpath(golib, mode):
  """Returns the search path for the given mode"""
  # The attribute name must match the one assigned in emit_library_actions 
  return getattr(golib, mode+"_searchpath")