[Qgis-developer] Persistent plugin files amended by user, wiped by upgrade
akbargumbira at gmail.com
Tue Mar 22 14:35:03 PDT 2016
Yes, see here as an example to use that API.
I would also suggest to use 'naming' there, for example make 'qgis2web'
directory there and create 'templates' folder under that dir so that it
won't mess up with other probable templates folder from other plugins.
On Tue, Mar 22, 2016 at 9:17 PM, Nathan Woodrow <madmanwoo at gmail.com> wrote:
> You should not store stuff with the plugin itself. Store it in .qgis2 and
> make a folder there. There is API for resolving that folder path.
> On Wed, 23 Mar 2016 6:07 am Tom Chadwin <tom.chadwin at nnpa.org.uk> wrote:
>> I've got something rather badly wrong in qgis2web. The plugin has a
>> /templates folder, and users are encouraged to add their own templates.
>> However, a user has just rightly pointed out that because /templates is
>> within the plugin folder, changes are lost when upgrading the plugin to a
>> new version. He has therefore lost his work.
>> How can I solve this? Does the plugin install process have permission to
>> write to a user's home directory as well as to the plugin folder?
>> View this message in context:
>> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
*Akbar Gumbira *
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer