From e10b2de0bec4836b2dc134d56ed573ad1d633ce3 Mon Sep 17 00:00:00 2001 From: fahim Date: Tue, 7 Apr 2015 15:32:15 +0530 Subject: Subject: Added new Icon images and Modified code to get model from xml file Description: Started the work to get the details of model parameter from xml. --- src/projManagement/Worker.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/projManagement/Worker.py') diff --git a/src/projManagement/Worker.py b/src/projManagement/Worker.py index 00cad6a4..58078b86 100644 --- a/src/projManagement/Worker.py +++ b/src/projManagement/Worker.py @@ -23,16 +23,22 @@ class WorkerThread(QtCore.QThread): def __init__(self,args): QtCore.QThread.__init__(self) self.args = args - + ''' + #Not Required def __del__(self): self.wait() + ''' def run(self): print "Calling :",self.args self.call_system(self.args) def call_system(self,command): print "System called" - os.system(command) + try: + os.system(command) + print "PID",os.getpid() + except: + print "Unable to run the command" \ No newline at end of file -- cgit