from openfisca_qt.gui.config import CONF
from openfisca_qt.plugins.survey.aggregates import AggregatesWidget

def get_config(widget):
    """
    Sets some country specific parameters of the widgets
    TODO:seems to be unused
    """
    country = CONF.get('simulation', 'country')
    if country == 'france':
        widget.varlist = ['irpp', 'ppe', 'af', 'cf', 'ars', 'aeeh', 'asf', 'aspa', 'aah', 'caah', 'rsa', 'psa', 'aefa', 'api', 'logt']
        widget.selected_vars = set(['revdisp', 'nivvie'])

from openfisca_qt.gui.config import CONF


def get_config(widget):
    """
    Sets some country specific parameters of the widgets
    TODO:seems to be unused
    """
    country = CONF.get('simulation', 'country')
    if country == 'france':
        widget.varlist = ['irpp', 'ppe', 'af', 'cf', 'ars', 'aeeh', 'asf', 'aspa', 'aah', 'caah', 'rsa', 'psa', 'aefa', 'api', 'logt']
        widget.selected_vars = set(['revdisp', 'nivvie'])

Remove bad import.