diff --git a/Interlace/lib/core/__version__.py b/Interlace/lib/core/__version__.py index 86d9c8b..51ed7c4 100644 --- a/Interlace/lib/core/__version__.py +++ b/Interlace/lib/core/__version__.py @@ -1,2 +1 @@ -__version__ = '1.5.0' - +__version__ = '1.5.1' diff --git a/Interlace/lib/threader.py b/Interlace/lib/threader.py index f652814..65528a4 100644 --- a/Interlace/lib/threader.py +++ b/Interlace/lib/threader.py @@ -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):