Skip to content
Snippets Groups Projects
Commit 040b1adb authored by Yannick DAYER's avatar Yannick DAYER
Browse files

[py] Fix annotations loader

parent edc17044
Branches
Tags
1 merge request!314Fix the annotations loader
Pipeline #69879 passed
...@@ -77,7 +77,7 @@ def read_annotation_file(file_name, annotation_type): ...@@ -77,7 +77,7 @@ def read_annotation_file(file_name, annotation_type):
if ":" in file_name: if ":" in file_name:
base_path, tail = file_name.split(":", maxsplit=1) base_path, tail = file_name.split(":", maxsplit=1)
f = search_and_open(search_pattern=[tail], base_dir=base_path) f = search_and_open(search_pattern=tail, base_dir=base_path)
else: else:
if not os.path.exists(file_name): if not os.path.exists(file_name):
raise IOError("The annotation file '%s' was not found" % file_name) raise IOError("The annotation file '%s' was not found" % file_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment