parameters: (toplevel_dir, path)
return_statement: return path
docstring: Converts |path| to a path relative to |toplevel_dir|.
docstring_summary: Converts |path| to a path relative to |toplevel_dir|.
docstring_tokens: Converts |path| to a path relative to |toplevel_dir| .
function: def _ToLocalPath(toplevel_dir, path):
      """Converts |path| to a path relative to |toplevel_dir|."""
      if path == toplevel_dir:
          return ""
      if path.startswith(toplevel_dir + "/"):
          return path[len(toplevel_dir) + len("/") :]
      return path
function_tokens: def _ToLocalPath ( toplevel_dir , path ) : if path == toplevel_dir : return "" if path . startswith ( toplevel_dir + "/" ) : return path [ len ( toplevel_dir ) + len ( "/" ) : ] return path