I’m developing a plugin and I want to call an external program that
takes as input a string and outputs a string. Under Mac and Linux I
successfully used subprocess.Popen() but under Windows it doesn’t
work. For instance, from a Python console inside QGIS under Mac/Linux:
import subprocess
p =
Hello Hugo,
Try QProcess class. It has signals for process finish and reading from
stdout.
Regards
Piotr
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/how-to-run-an-external-program-from-QGIS-and-catch-its-output-tp5129610p5129650.html
Sent from the Quantum GIS -
Hi Hugo,
On Tue, Mar 18, 2014 at 2:59 AM, Hugo Ledoux h.led...@tudelft.nl wrote:
I'm developing a plugin and I want to call an external program that
takes as input a string and outputs a string. Under Mac and Linux I
successfully used subprocess.Popen() but under Windows it doesn't
work. For