summaryrefslogtreecommitdiff
path: root/src/projManagement/Worker.py
diff options
context:
space:
mode:
authorfahim2015-04-07 15:32:15 +0530
committerfahim2015-04-07 15:32:15 +0530
commite10b2de0bec4836b2dc134d56ed573ad1d633ce3 (patch)
tree3dac4590ca8567f3debf33d895d4076eccbc2a02 /src/projManagement/Worker.py
parent34d01b75a71c270922772a2d12f493b7a46866fe (diff)
downloadeSim-e10b2de0bec4836b2dc134d56ed573ad1d633ce3.tar.gz
eSim-e10b2de0bec4836b2dc134d56ed573ad1d633ce3.tar.bz2
eSim-e10b2de0bec4836b2dc134d56ed573ad1d633ce3.zip
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.
Diffstat (limited to 'src/projManagement/Worker.py')
-rw-r--r--src/projManagement/Worker.py10
1 files changed, 8 insertions, 2 deletions
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