Consistent all_labels reading
This commit is contained in:
+4
-1
@@ -15,7 +15,10 @@ def main():
|
||||
else:
|
||||
work_dir = os.path.abspath(sys.argv[1])
|
||||
|
||||
all_labels = [l for l in (Path(work_dir) / "labels").read_text().split("\n") if l!=""]
|
||||
all_labels = sorted(list(filter(None,
|
||||
(Path(work_dir) / "labels")
|
||||
.read_text().splitlines())),
|
||||
key = natural_key)
|
||||
a_rendre_path = os.path.join(work_dir, TARGET_DIR_NAME)
|
||||
|
||||
if not os.path.isdir(a_rendre_path):
|
||||
|
||||
Reference in New Issue
Block a user