def doWork(self):
        self.startStatusProgress()
        shell = os.name == 'nt'

        print (self.command)
        self.appendData("executing: %s\n" + ' '.join(self.command))

        try:
            self.proc = subprocess.Popen(
                self.command,
                shell  = shell,
                stdout = subprocess.PIPE,
                stderr = subprocess.PIPE,
                cwd    = self.workingDir
            )

            print ('process created')

            if self.proc.stdout:
                threading.Thread(target = self.readStdOut).start()
            if self.proc.stderr:
                threading.Thread(target = self.readStdErr).start()

        except Exception as e:
            msg = "Error: %s" % e
            print(msg)
            self.appendData(msg)
            self.statusBar.stop = True
            self.statusBar.error = True
            # self.stopStatusProgress()
            # thread.start_new_thread(self.statusBar.timedMessage,(msg))
dataset/ETHPy150Open francodacosta/composer-sublime/st3/System.py/Exec.doWork/operator `%` -> `+`