def load_options_files(fname):
    """
    Load options for a Fabber run from an .fab options file

    :param fname: File name of options file
    """
    options = {}
    with open(fname, 'r') as fabfile:
        for line in fabfile.readlines():
            line = line.strip()
            if line and line[0] != '#':
                keyval = line.split('=', 1)
                key = keyval[0].strip()
                if len(keyval) > 1:
                    value = keyval[1].strip()
                else:
                    value = True
                options[key] = value
    return options
