summaryrefslogtreecommitdiff
path: root/src/projManagement/Worker.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/projManagement/Worker.py')
-rw-r--r--src/projManagement/Worker.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/projManagement/Worker.py b/src/projManagement/Worker.py
index f0fe7234..fe884ef3 100644
--- a/src/projManagement/Worker.py
+++ b/src/projManagement/Worker.py
@@ -1,4 +1,4 @@
-#===============================================================================
+#=========================================================================
#
# FILE: WorkerThread.py
#
@@ -14,29 +14,31 @@
# ORGANIZATION: eSim team at FOSSEE, IIT Bombay.
# CREATED: Tuesday 24 Feb 2015
# REVISION: ---
-#===============================================================================
+#=========================================================================
from PyQt4 import QtCore
import subprocess
from configuration.Appconfig import Appconfig
+
class WorkerThread(QtCore.QThread):
"""
This is Thread class use to run the command
"""
- def __init__(self,args):
+
+ def __init__(self, args):
QtCore.QThread.__init__(self)
self.args = args
-
def __del__(self):
self.wait()
def run(self):
- print("Worker Thread Calling Command :",self.args)
+ print("Worker Thread Calling Command :", self.args)
self.call_system(self.args)
- def call_system(self,command):
+ def call_system(self, command):
procThread = Appconfig()
proc = subprocess.Popen(command.split())
procThread.procThread_list.append(proc)
- procThread.proc_dict[procThread.current_project['ProjectName']].append(proc.pid)
+ procThread.proc_dict[procThread.current_project['ProjectName']].append(
+ proc.pid)