def file_to_list(file_path):
    """add file lines to output list if line is not empty, return output list

    Parameters
    ----------
    file_path : str

    Returns
    -------
    list
    """
    output_list = []
    with open(file_path) as f:
        for line in f:
            line = line.strip()
            if line:
                output_list.append(line)

    return output_list