def writeErzsolOut2cmd(cmd_file: str, erzsol_seismo_out: str):
    """
    writeErzsolOut2cmd(cmd_file, seisOut)

    This function writes the Path to the erzsol seimogram output to the
    cmd file.

    Parameters
    ----------
    cmd_file: str
        Path to cmd file
    erzsol_seismo_out: str
        Path/name of erzsol3 output file

    Returns
    -------
    Modified cmd_file including path to erzsol3 output file

    """
    file = open(cmd_file, 'r')
    lines = file.read().splitlines()
    file.close()
    lines[1] = (
        '"{}"                                  File for T-X seismogram output'
        .format(erzsol_seismo_out))
    file = open(cmd_file, 'w')
    file.write('\n'.join(lines))
    file.close()
