Skip to content

Commit 24b899e

Browse files
authored
Merge pull request #44 from codingo/progress-bar-dev
Progress bar development with bug fixes
2 parents f944a31 + f699668 commit 24b899e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Interlace/lib/core/__version__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
__version__ = '1.5.0'
2-
1+
__version__ = '1.5.1'

Interlace/lib/threader.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ def __call__(self):
1919
if self.tqdm:
2020
self.tqdm.update(1)
2121
# run task
22-
self.run_task(task)
22+
self.run_task(task, self.tqdm)
2323
except IndexError:
2424
break
2525

2626
@staticmethod
27-
def run_task(task):
28-
subprocess.call(task, shell=True)
27+
def run_task(task, t):
28+
s = subprocess.Popen(task, shell=True, stdout=subprocess.PIPE)
29+
t.write(s.stdout.readline().decode("utf-8"))
2930

3031

3132
class Pool(object):

0 commit comments

Comments
 (0)