

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 msg.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

dataset/ETHPy150Open francodacosta/composer-sublime/st3/System.py Exec.doWork/VarMisuse@96/120 `self`->`msg`