Storing/Loading settings of an extension
-
Hello Frederik, Hello Robofont users,
I am working on a robofont extension and I need someway to store settings.
Just to give an idea of what I want to do:-
when the extension is closed (clicking on the red cross), the last results from controls callbacks have to be stored in a file
-
when the extension is launched these settings have to come back in interface/variables (if setting file is provided)
Basically I need to write and read this data somewhere.
A text or csv file could be a solution, but is it a best practice?I found this interesting Python module
https://docs.python.org/2/library/shelve.html
but I noticed that is not bundled with Robofont.What kind of format do you suggest?
Plist?Thanks
-
-
Ok, I will try!
Thanks
-
I would advice you to use
getExtensionDefault(key, fallback)
andsetExtensionDefault(key, value)