summaryrefslogtreecommitdiff
path: root/src/projManagement
diff options
context:
space:
mode:
authorathulappadan2015-04-10 12:17:58 +0530
committerathulappadan2015-04-10 12:17:58 +0530
commit68c0ed4e6bb6659928423ea7363ed2f28fbdd4ca (patch)
treeda8c9031397532291665d518637b89c7b029d042 /src/projManagement
parent09278fca52c3d9779b86c97005f762c5719b88d9 (diff)
downloadeSim-68c0ed4e6bb6659928423ea7363ed2f28fbdd4ca.tar.gz
eSim-68c0ed4e6bb6659928423ea7363ed2f28fbdd4ca.tar.bz2
eSim-68c0ed4e6bb6659928423ea7363ed2f28fbdd4ca.zip
Exit method modified
Diffstat (limited to 'src/projManagement')
-rw-r--r--src/projManagement/Worker.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/projManagement/Worker.py b/src/projManagement/Worker.py
index 58078b86..d31ba7c3 100644
--- a/src/projManagement/Worker.py
+++ b/src/projManagement/Worker.py
@@ -16,15 +16,15 @@
# REVISION: ---
#===============================================================================
from PyQt4 import QtCore
-import os
+import subprocess
+from configuration.Appconfig import Appconfig
class WorkerThread(QtCore.QThread):
def __init__(self,args):
QtCore.QThread.__init__(self)
self.args = args
- '''
- #Not Required
+
def __del__(self):
self.wait()
@@ -35,10 +35,8 @@ class WorkerThread(QtCore.QThread):
def call_system(self,command):
print "System called"
- try:
- os.system(command)
- print "PID",os.getpid()
- except:
- print "Unable to run the command"
+ procThread = Appconfig()
+ proc = subprocess.Popen(command)
+ procThread.procThread_list.append(proc)
\ No newline at end of file