On 10/28/2015 10:01 AM, Alessandro Pasotti wrote:
Try to add QtGui.QApplication(sys.argv) such as:
#Initialize QGIS
core.QgsApplication.setPrefixPath("/usr", True)
core.QgsApplication.initQgis()
# On 2.10 crashes without!
QtGui.QApplication(sys.argv)
I thought it was fixed in 2.12 (and master).
Thanks, that was it!
I'm not sure why it worked before in 2.10, but it did without
initializing the QApplication. Hm, weird.
--
François-Xavier Thomas -- Ingénieur traitement des images
AIRINOV
Incubateur PRINE
48 rue René Clair
75899 Paris Cedex 18
09 72 39 75 82
www.airinov.fr
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user