import os
+import time
+
from PyQt4.QtCore import *
from sface.sficonfig import config
self.processFinished)
def processFinished(self):
+ self.trace_end()
self.emit(SIGNAL("finished()"))
def __getRSpec(self, mgr):
self.start()
def start(self):
+ self.trace_command()
self.process.start(self.exe, self.args)
def readOutput(self):
if self.process.state() == QProcess.NotRunning:
return self.process.readAll()
+ def trace_command (self):
+ if config.SFACE_VERBOSE:
+ self._trace=time.time()
+ command = "%s %s" % (self.exe, self.args.join(" "))
+ print time.strftime('%M:%S'),'Invoking',command
+
+ def trace_end (self):
+ if config.SFACE_VERBOSE:
+ command = "%s %s" % (self.exe, self.args.join(" "))
+ print time.strftime('%M:%S'),"[%.3f s]"%(time.time()-self._trace),command,'Done'