Hi Alexandre, why not save such data in the folder under QGIS home directory (~/.qgis2)? You can easily get path to this directory with the QGIS API and data in this directory will be safe even when plugin removed.
2015-08-31 15:39 GMT+03:00 Alexandre Neto <[email protected]>: > Hello all, > > At a plugin project we have, a metadata editor, we save user recent files > and a contact list as json files in a folder, inside the plugin folder. It > works ok, until we update or reinstall the plugin, that wipes that > information. > > Can someone provide information on how to (or where to) save plugin's user > data (like settings, last used files, etc...), so it doesn't vanish on > plugin updates or re-instalation? > > I found this: > http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/settings.html > > But not sure if we can use it for what we need. > > Thanks, > > Alexandre Neto > > > > > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer -- Alexander Bruy _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
