

def save_project_palettes(window, palettes):
    'Save project palettes.'
    data = window.project_data()
    if (data is None):
        data = {
            'color_helper_palettes': palettes,
        }
    else:
        data['color_helper_palettes'] = data
    window.set_project_data(data)

dataset/ETHPy150Open facelessuser/ColorHelper/color_helper_util.py save_project_palettes/VarMisuse@52/82 `palettes`->`data`