summaryrefslogtreecommitdiff
path: root/src/projManagement/Worker.py
diff options
context:
space:
mode:
authorFahim2015-04-10 12:21:51 +0530
committerFahim2015-04-10 12:21:51 +0530
commitdfbf63e972cf9da81ab1cd254007d1c274df5e8b (patch)
tree7b329b36b3c2a335f03297f58c61a59894277475 /src/projManagement/Worker.py
parent591308d787a000ac489e5f0e23af08b4c854180e (diff)
parent68c0ed4e6bb6659928423ea7363ed2f28fbdd4ca (diff)
downloadeSim-dfbf63e972cf9da81ab1cd254007d1c274df5e8b.tar.gz
eSim-dfbf63e972cf9da81ab1cd254007d1c274df5e8b.tar.bz2
eSim-dfbf63e972cf9da81ab1cd254007d1c274df5e8b.zip
Merge pull request #7 from athulappadan/master
Exit method modified
Diffstat (limited to 'src/projManagement/Worker.py')
-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