<div dir="ltr"><div>Hi,</div><div><br></div><div>configparser is designed to read INI file : <a href="https://docs.python.org/3/library/configparser.html">https://docs.python.org/3/library/configparser.html</a></div><div>There are some helpers if needed in QGIS : <a href="https://github.com/qgis/QGIS/blob/master/python/utils.py#L291">https://github.com/qgis/QGIS/blob/master/python/utils.py#L291</a> to have the configparser from a plugin name if needed.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 8 mars 2021 à 16:46, Bo Victor Thomsen <<a href="mailto:bo.victor.thomsen@gmail.com">bo.victor.thomsen@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi list -<br>
<br>
Is there a smart method - using Python - to read the entries <br>
("Homepage", "Bug Tracker", "Code repository"...) in the "metadata.txt" <br>
in the plugin directory ?<br>
<br>
-- <br>
Med venlig hilsen / Kind regards<br>
<br>
Bo Victor Thomsen<br>
<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="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>