[QGIS-Developer] How to read content from the metadata.txt file

Bo Victor Thomsen bo.victor.thomsen at gmail.com
Mon Mar 8 03:27:44 PST 2021


Works like a charm. Thanks Etienne :-)

Med venlig hilsen / Kind regards

Bo Victor Thomsen

Den 08-03-2021 kl. 10:55 skrev Etienne Trimaille:
> Hi,
>
> configparser is designed to read INI file : 
> https://docs.python.org/3/library/configparser.html 
> <https://docs.python.org/3/library/configparser.html>
> There are some helpers if needed in QGIS : 
> https://github.com/qgis/QGIS/blob/master/python/utils.py#L291 
> <https://github.com/qgis/QGIS/blob/master/python/utils.py#L291> to 
> have the configparser from a plugin name if needed.
>
> Le lun. 8 mars 2021 à 16:46, Bo Victor Thomsen 
> <bo.victor.thomsen at gmail.com <mailto:bo.victor.thomsen at gmail.com>> a 
> écrit :
>
>     Hi list -
>
>     Is there a smart method - using Python - to read the entries
>     ("Homepage", "Bug Tracker", "Code repository"...) in the
>     "metadata.txt"
>     in the plugin directory ?
>
>     -- 
>     Med venlig hilsen / Kind regards
>
>     Bo Victor Thomsen
>
>     _______________________________________________
>     QGIS-Developer mailing list
>     QGIS-Developer at lists.osgeo.org <mailto:QGIS-Developer at lists.osgeo.org>
>     List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>     <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
>     Unsubscribe:
>     https://lists.osgeo.org/mailman/listinfo/qgis-developer
>     <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210308/8fb6dd61/attachment.html>


More information about the QGIS-Developer mailing list