diff --git a/csv_parser/csv_parser.py b/csv_parser/csv_parser.py index d75a53f3d..8b55573b3 100644 --- a/csv_parser/csv_parser.py +++ b/csv_parser/csv_parser.py @@ -88,7 +88,7 @@ def get_nomenclature(elem): path_file = '' nomenclature_files = os.listdir(os.path.join("..", "nomenclature_parser", "out", "latest", "csv")) for filename in nomenclature_files: - if filename.startswith(nomenclature_name): + if filename[:-4] == nomenclature_name: path_file = os.path.join("..", "nomenclature_parser", "out", "latest", "csv", filename) if path_file != '':