From ad39faf2cdc136c93afa51f51d7b6dc5c26502d5 Mon Sep 17 00:00:00 2001 From: Frank Baumgarten Date: Sun, 12 Nov 2023 17:03:03 +0100 Subject: [PATCH] Fix for OpenDrive maps with schema argument (#967) Reading OpenDrive maps that have the xml schema added as an argument on the root element failed before. --- srunner/scenarioconfigs/openscenario_configuration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srunner/scenarioconfigs/openscenario_configuration.py b/srunner/scenarioconfigs/openscenario_configuration.py index 7bdbb0b29..421c9832d 100644 --- a/srunner/scenarioconfigs/openscenario_configuration.py +++ b/srunner/scenarioconfigs/openscenario_configuration.py @@ -179,13 +179,13 @@ def _set_carla_town(self): if ".xodr" in self.town: with open(self.town, 'r', encoding='utf-8') as od_file: data = od_file.read() - index = data.find('') + index = data.find('') + index = old_map.find('