bis
This commit is contained in:
@@ -70,7 +70,9 @@ class PBars:
|
|||||||
if "desc" in kwargs:
|
if "desc" in kwargs:
|
||||||
kwargs["desc"] = kwargs["desc"].format(worker_id=i)
|
kwargs["desc"] = kwargs["desc"].format(worker_id=i)
|
||||||
self.append(tqdm(position=i, ncols=self.width, ascii=False, **kwargs))
|
self.append(tqdm(position=i, ncols=self.width, ascii=False, **kwargs))
|
||||||
self.print_path = Path(f"progress {self.pbars[0].desc} {self.id}").resolve()
|
self.print_path = Path(
|
||||||
|
f"progress {self.pbars[0].desc.replace('/', '')} {self.id}"
|
||||||
|
).resolve()
|
||||||
self.close_ev = threading.Event()
|
self.close_ev = threading.Event()
|
||||||
if "file" in self.policy:
|
if "file" in self.policy:
|
||||||
self.thread = threading.Thread(target=self.print_worker, daemon=True)
|
self.thread = threading.Thread(target=self.print_worker, daemon=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user