def save_project_palettes(window, palettes):

    data = window.project_data()
    if data is None:
        data = {'color_helper_palettes': palettes}
    else:
        data['color_helper_palettes'] = palettes
    window.set_project_data(data)
Save project palettes.
dataset/ETHPy150Open facelessuser/ColorHelper/color_helper_util.py/save_project_palettes