diff options
Diffstat (limited to 'src/projManagement/Worker.py')
-rw-r--r-- | src/projManagement/Worker.py | 14 |
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 |