<div dir="ltr">Yes, see here as an example to use that API. <a href="https://github.com/inasafe/inasafe/blob/develop/safe/gui/tools/minimum_needs/needs_profile.py#L296">https://github.com/inasafe/inasafe/blob/develop/safe/gui/tools/minimum_needs/needs_profile.py#L296</a><div><br></div><div>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.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 22, 2016 at 9:17 PM, Nathan Woodrow <span dir="ltr"><<a href="mailto:madmanwoo@gmail.com" target="_blank">madmanwoo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">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.</p><div class="HOEnZb"><div class="h5">
<br><div class="gmail_quote"><div dir="ltr">On Wed, 23 Mar 2016 6:07 am Tom Chadwin <<a href="mailto:tom.chadwin@nnpa.org.uk" target="_blank">tom.chadwin@nnpa.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've got something rather badly wrong in qgis2web. The plugin has a<br>
/templates folder, and users are encouraged to add their own templates.<br>
However, a user has just rightly pointed out that because /templates is<br>
within the plugin folder, changes are lost when upgrading the plugin to a<br>
new version. He has therefore lost his work.<br>
<br>
How can I solve this? Does the plugin install process have permission to<br>
write to a user's home directory as well as to the plugin folder?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Persistent-plugin-files-amended-by-user-wiped-by-upgrade-tp5257867.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Persistent-plugin-files-amended-by-user-wiped-by-upgrade-tp5257867.html</a><br>
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>
</div></div><br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><p><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">-------------------</span></b></p><b>Akbar Gumbira </b></div><div><b style="font-size:12.8px"><a href="http://www.akbargumbira.com" target="_blank">www.akbargumbira.com</a></b></div></div></div></div></div>
</div>