python - How to read gradle build progress from it's output? -


i execute gradle python subprocess:

proc = subprocess.popen(["./gradlew", "assemble", stdout=subprocess.pipe, stderr=subprocess.pipe, ) 

then run 2 threads read stdout , stderr:

class mythread(qtcore.qthread):      def run(self):         while true:             line = self.stream.readline()             if line not none , len(line) > 0:                 // process line             else:                break 

i read log correct, can't read output like:

> building 53% > :project:assemble 

i tried replace readline read, not helped.

if execute:

./gradlew assemble | hd 

i not see build progress in hd.

is solution read progress?


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -