[Qgis-developer] Capturing stdout from a plugin

Gary Sherman gsherman at geoapt.com
Thu Mar 14 17:09:09 PDT 2013


In the 1.x console API, you could use:

output = sys.stdout.get_and_clean_data()

to grab what was sent to stdout via print statements.

Is there an equivalent way to do this with the 2.0 API? I'm not seeing it...

Thanks,
-gary


-- 
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Gary Sherman
Chair, QGIS Project Steering Committee
-Desktop GIS Book:
 *http://desktopgisbook.com
-Alaska Novel:
 *http://alaskana.co
-Geospatial Consulting & Hosting:
 *http://geoapt.com
"We work virtually everywhere"
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130314/ed1439a1/attachment.html>


More information about the Qgis-developer mailing list