X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fsfiprocess.py;h=a9ac7692e7ae78f2c67faeb34e04a4fe64cd2939;hp=c1f3b955db41c0552172bc809c7d5b7cf116d8cb;hb=6a0d39ba688df2efbbf1d21d367200378f09f4a3;hpb=cefadc898b3a60ceded6b2564b8ab6224afb1257 diff --git a/sface/sfiprocess.py b/sface/sfiprocess.py index c1f3b95..a9ac769 100644 --- a/sface/sfiprocess.py +++ b/sface/sfiprocess.py @@ -20,7 +20,10 @@ class SfiProcess(QObject): def __init__(self, parent=None): QObject.__init__(self, parent) + env = QProcess.systemEnvironment() + env << "PYTHONPATH=%s" % ":".join(sys.path) self.process = QProcess() + self.process.setEnvironment(env) self.connect(self.process, SIGNAL("finished(int, QProcess::ExitStatus)"), self.processFinished) self.connect(self.process, SIGNAL("readyReadStandardOutput()"), @@ -41,8 +44,8 @@ class SfiProcess(QObject): return self.process.state() != QProcess.NotRunning def processStandardOutput(self): - output = self.readAllStandardOutput() - if self.debug: + output = self.process.readAllStandardOutput() + if config.debug: print output def processStandardError(self):