mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-17 23:04:24 +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:
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user