test(data-extraction): Replace hard-coded seperator with OS specific

This commit is contained in:
TrisNol 2023-09-21 17:47:30 +02:00
parent e6af96ea6d
commit 365f74edc1

View File

@ -38,7 +38,7 @@ def transform_xml_to_json(source_dir: str, target_dir: str) -> None:
os.path.normpath(i) for i in glob.glob(source_dir + "**/*.xml", recursive=True)
]:
target_path = os.path.join(
target_dir, source_path.split("\\")[-1].replace(".xml", ".json")
target_dir, source_path.split(os.sep)[-1].replace(".xml", ".json")
)
with open(source_path, encoding="utf-8") as source_file: