Hi!
I am trying to load a project into qgis when a different project is already
loaded by doing this in my plugin:
QgsProject.instance().clear()
QgsProject.instance().setFileName('d:/shashank/test/second.xml.qgs')
QgsProject.instance().read()
It does not load the project. Interestingly it loads the project when I execute
the command in python console. Also it does not work if I put the three lines
inside a function and execute the function in python console.
Thanks in advanceShash _______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user