def write_mod2cmd(cmd_file: str, mod_file: str):
    """
    write_mod2cmd(cmd_file, mod_file)

    This function writes the model file to the cmd file

    Parameters
    ----------
    cmd_file: str
        Path to cmd file
    mod_file: str
        Path to model file

    Returns
    -------
    Modified cmd_file including path to model file

    """
    file = open(cmd_file, 'r')
    lines = file.read().splitlines()
    lines[2] = '"{}"                              Velocity model file'.format(
        mod_file)
    file.close()
    file = open(cmd_file, 'w')
    file.write('\n'.join(lines))
    file.close()
