Have a bash script that outputs <string> <string>: <string>. The last string always looks like an integer.
example
Code:
abc def: 42
ghi jkl: 21
mno pqr: 13
If I execute this with qprocess in a python script the result is;
Code:
abc def:
42
ghi jkl:
21
mno pqr:
13
I have no idea why a linefeed is added after the colon and at the end of each line. I am open to any advice, comments, or suggestions.
This is my python code;
Code:
def updateSummaries(self):
command = '/path/to/my/script'
self.runner = QtCore.QProcess(self)
self.runner.readyReadStandardOutput.connect(self.readSummaries)
self.runner.start(command)
def readSummaries(self):
StdOut = str(self.runner.readAllStandardOutput())
print StdOut
running python 2.7.9 and qt 4.8.6
Cheers,