[Qgis-developer] Making QgsProject available to python plugins
Sandro Santilli
strk at keybit.net
Sat Sep 29 05:36:37 PDT 2012
On Sat, Sep 29, 2012 at 03:32:58PM +0300, Alexander Bruy wrote:
> AFAIK, QgsProject already available from Python. Just use
> QgsProject.instance() to access it. Maybe you mean that
> some methods currently not exposed in Python API?
NameError: global name 'QgsProject' is not defined
Do I need to import anything special to get it ?
I just added a ``QgsProject.instance()`` line into
an existing plugin code... (DBManager).
--strk;
More information about the Qgis-developer
mailing list