[Qgis-developer] Saving plugin's user data/settings
Alexander Bruy
alexander.bruy at gmail.com
Tue Sep 1 05:14:09 PDT 2015
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 <senhor.neto at gmail.com>:
> 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
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
--
Alexander Bruy
More information about the Qgis-developer
mailing list