def read_config_file(path, comment='#'):
    """Read the lines from a file, skipping empty and commented lines.

    Don't process comments if 'comment' is falsy.
    """
    with open(path) as file:
        return [
            line for line in (line.rstrip() for line in file)
            if line and not (comment and line.startswith(comment))
        ]