fix merge between onelab and princeton repositories
authorroot <root@cassidy.cs.princeton.edu>
Mon, 29 Nov 2010 17:41:56 +0000 (12:41 -0500)
committerroot <root@cassidy.cs.princeton.edu>
Mon, 29 Nov 2010 17:41:56 +0000 (12:41 -0500)
1  2 
sface/sfiprocess.py

@@@ -21,15 -20,12 +21,18 @@@ 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.xmlrpctracker = XmlrpcTracker()
 +        # in case self.output is read by the XmlrpcTracker before any
 +        # readyReadStandardOutput signal
 +        self.output = ''
 +
          self.connect(self.process, SIGNAL("readyReadStandardOutput()"),
                       self.processStandardOutput)
          self.connect(self.process, SIGNAL("readyReadStandardError()"),