def init_config():
    """
    Init configuration
    """
    # Load the initial config
    config = os.path.dirname(__file__) + \
        '/colorset/config'
    try:
        data = load_config(config)
        for d in data:
            c[d] = data[d]
    except:
        pass
    # Load user's config
    rainbow_config = os.path.expanduser("~") + os.sep + '.rainbow_config.json'
    try:
        data = load_config(rainbow_config)
        for d in data:
            c[d] = data[d]
    except (__HOLE__, ValueError) as e:
        c['USER_JSON_ERROR'] = str(e)
    # Load default theme
    theme_file = os.path.dirname(__file__) + \
        '/colorset/' + c['THEME'] + '.json'
    try:
        data = load_config(theme_file)
        for d in data:
            c[d] = data[d]
    except:
        pass


# Init config
dataset/ETHPy150Open DTVD/rainbowstream/rainbowstream/config.py/init_config