def get_destination_path(dest, absolute_path, name):
    """
    Get the output file path

    :param pathlib.Path dest: File path for output.
    :param pathlib.Path absolute_path: Source file's absolute path.
    :param str name: Output file name.
    :return: Destination file path
    :rtype: pathlib.Path

    """
    if dest is None:
        dest = absolute_path.parent / name
    return dest