Windows compatibility

This commit is contained in:
2026-08-20 12:01:31 +02:00
parent 7c366a9ca4
commit ac4ab782b2
20 changed files with 634 additions and 134 deletions
+2 -2
View File
@@ -103,6 +103,7 @@ def main():
args = parser.parse_args()
root_dir = args.input_path
validated_labels = utils.read_all_labels(root_dir)
results = annotating.make_dictionary(root_dir)
label_groups = os.path.join(root_dir, "label_groups")
all_labels = os.path.join(root_dir, "labels")
@@ -113,8 +114,7 @@ def main():
print(f"Error: {all_labels} not found.")
sys.exit(1)
with open(all_labels, 'r') as f:
lines = [l.strip() for l in f if l.strip()]
lines = validated_labels
groups = {}
for line in lines: