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()"),
def processStandardOutput(self):
output = self.process.readAllStandardOutput()
- if self.debug:
+ if config.debug:
print output
def processStandardError(self):