Commit 015967d4 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

track progress update correctly

parent 2817decc
......@@ -92,7 +92,9 @@ def executeOtb(commands, feedback, addToLog=True):
try:
for line in iter(proc.stdout.readline, ''):
line = line.strip()
if 'Writing' in line:
#'* ]' and ' ]' says its some progress update
#print('line[-3:]',line[-3:])
if line[-3:] == "* ]" or line[-3:] == " ]":
part = line.split(':')[1]
percent = part.split('%')[0]
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment