Skip to content

Commit

Permalink
Merge pull request #44 from codingo/progress-bar-dev
Browse files Browse the repository at this point in the history
Progress bar development with bug fixes
  • Loading branch information
codingo authored Jun 4, 2019
2 parents f944a31 + f699668 commit 24b899e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Interlace/lib/core/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
__version__ = '1.5.0'

__version__ = '1.5.1'
7 changes: 4 additions & 3 deletions Interlace/lib/threader.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ def __call__(self):
if self.tqdm:
self.tqdm.update(1)
# run task
self.run_task(task)
self.run_task(task, self.tqdm)
except IndexError:
break

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


class Pool(object):
Expand Down

0 comments on commit 24b899e

Please sign in to comment.