This commit is contained in:
Benoît Sierro
2021-08-20 15:13:53 +02:00
parent 60b1c4f4fe
commit 2f01577480

View File

@@ -70,7 +70,9 @@ class PBars:
if "desc" in kwargs:
kwargs["desc"] = kwargs["desc"].format(worker_id=i)
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()
if "file" in self.policy:
self.thread = threading.Thread(target=self.print_worker, daemon=True)