def load_list_file(list_file):
    """
    Loads a file containing a single value-per-line,
    potentially with '#' comments
    """
    values = []
    with open(list_file) as file:
        for line in file:
            line = line.strip()
            # Handle comments
            if "#" in line:
                line = line.split("#")[0]
            if line == "":
                continue
            values.append(line)
    return values