[Qgis-developer] Accessing Plugin metadata
Andrew McClure
andrew at southweb.co.nz
Fri Jul 18 01:16:41 PDT 2014
Sorry guys but this one has taken a bit too long to resolve:
iface.pluginManagerInterface().pluginMetadata(u"name")
returns None
iface.pluginManagerInterface().pluginMetadata(u"general.name")
returns None
The fall back is of course something like this:
self.metadata = ConfigParser()
self.metadata.read(os.path.join(self.plugin_dir,'metadata.txt'))
But then that's cheating a bit ....
More information about the Qgis-developer
mailing list