plugin.set_setting() with python script? please help!

Hi

not sure if this belongs in this section, so apologies in advance if it should be elsewhere.

I’m trying to change a settings.xml file located in the an add-on data folder in the user data folder.
(user data/addon_data/XXXX/settings.xml) (XXXX being the add-on).

Me and my girlfriend have different settings for this add-on and I’m trying to make it possible to switch between settings with just one click.

The settings are changed in the add-on by using the command below in a python script:

plugin.set_setting(…)

I currently use a python script, via Super Favourites “manual entry” command to run a Skin.SetString() feature and it works perfectly but for some reason, and not for the lack of trying, i can’t get the Set_Setting command to work Confused

If i manually delete the settings.xml and then paste the new one, it works perfectly but id like (if possible) to do it from within kodi.

can anyone help or advise a way of doing it please?

thanks