Hi Richard, I gave it a shot at adding utils, but this is not very concluant, see https://qgis.org/pyqgis/master_PR80/utils/index.html
Many methods are listed as classes (like showException) and some classes are just copies of the original ones (utils.QgsMessageBar = qgis.core.QgsMessageBar). Thoughts? Denis Le mer. 15 sept. 2021 à 14:59, Richard Duivenvoorde <[email protected]> a écrit : > Hi Devs, > > Searching for a way to programmatically find out which version of a plugin > is installed and if there was some interface for it, I used > > dir(qgis.utils) > > in the Python Console. > > And seeing 'metadataParser', I thought to look for it in our pyqgis docs: > https://qgis.org/pyqgis/master/ > > But... cannot find any qgis.utils methods or module? > > Any (obvious) reason for this? > Or did we forgot to include it in the building machinery? > > Thanks for any info. > > Ah... > > https://gis.stackexchange.com/questions/203842/seeking-documentation-for-qgis-utils-module > > so help(qgis.utils.pluginMetadata) shows me enough to find out: > > qgis.utils.pluginMetadata('myplugin', 'version') > ('myplugin' string found via qgis.utils.plugins) > > > Regards, > > Richard Duivenvoorde > > PS didn't I already ask this earlier?????? > _______________________________________________ > QGIS-Developer mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
