mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-25 00:12:35 +02:00
test(data-extraction): Replace hard-coded seperator with OS specific
This commit is contained in:
parent
e6af96ea6d
commit
365f74edc1
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user