Windows compatibility
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user