def rename_context(path, name):
    """ Returns a string which is what the path of the context would be if the
	context pointed to by `path` would be renamed with `name`."""
    return '.'.join(path.split('.')[:-1] + [name])
