+import os
from PyQt4.QtCore import *
from sface.sficonfig import config
def __init__(self, parent=None):
QObject.__init__(self, parent)
- def __init_command(self, args)
+ def __init_command(self, args):
self.args = QStringList()
for arg in args:
self.args << QString(arg)
self.exe = find_executable("sfi.py")
self.process = QProcess()
- finished = pyqtSignal()
self.connect(self.process, SIGNAL("finished(int, QProcess::ExitStatus)"),
- self.finished)
+ self.processFinished)
+
+ def processFinished(self):
+ self.emit(SIGNAL("finished()"))
def __getRSpec(self, mgr):
slice = config.getSlice()
self.start()
def start(self):
- self.process(self.exe, self.args)
+ self.process.start(self.exe, self.args)
def readOutput(self):
if self.process.state() == QProcess.NotRunning: