From ca4bea47d235edae8046f321337cdf740eea7e7d Mon Sep 17 00:00:00 2001 From: sharkinsspatial Date: Fri, 9 Aug 2024 13:08:19 -0600 Subject: [PATCH] Use string represenation of output_dir for lxml 3.6.0 compatability. --- hls_vi/generate_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hls_vi/generate_metadata.py b/hls_vi/generate_metadata.py index b8a7e8d..3c57451 100644 --- a/hls_vi/generate_metadata.py +++ b/hls_vi/generate_metadata.py @@ -68,7 +68,7 @@ def generate_metadata(input_dir: Path, output_dir: Path) -> None: ET.XMLSchema(file=xsd).assertValid(tree) tree.write( - output_dir / metadata_path.name.replace("HLS", "HLS-VI"), + str(output_dir / metadata_path.name.replace("HLS", "HLS-VI")), encoding="utf-8", xml_declaration=True, )