mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-18 15:24:23 +01:00
Merge pull request #44 from codingo/progress-bar-dev
Progress bar development with bug fixes
This commit is contained in:
@@ -1,2 +1 @@
|
|||||||
__version__ = '1.5.0'
|
__version__ = '1.5.1'
|
||||||
|
|
||||||
|
|||||||
@@ -19,13 +19,14 @@ class Worker(object):
|
|||||||
if self.tqdm:
|
if self.tqdm:
|
||||||
self.tqdm.update(1)
|
self.tqdm.update(1)
|
||||||
# run task
|
# run task
|
||||||
self.run_task(task)
|
self.run_task(task, self.tqdm)
|
||||||
except IndexError:
|
except IndexError:
|
||||||
break
|
break
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def run_task(task):
|
def run_task(task, t):
|
||||||
subprocess.call(task, shell=True)
|
s = subprocess.Popen(task, shell=True, stdout=subprocess.PIPE)
|
||||||
|
t.write(s.stdout.readline().decode("utf-8"))
|
||||||
|
|
||||||
|
|
||||||
class Pool(object):
|
class Pool(object):
|
||||||
|
|||||||
Reference in New Issue
Block a user