Commit 17f78c88 authored by Eric Duminil's avatar Eric Duminil
Browse files

Make sure paths also work on Windows

parent c52fa558
Showing with 3 additions and 3 deletions
+3 -3
......@@ -151,13 +151,13 @@ def extract_region(output_dir: Path, location_name: str, wkt: str) -> None:
with open(params_path, 'w') as f:
f.write("--input\n")
f.write(','.join(f"{gml}" for gml in gml_inputs))
f.write(','.join(f"{gml.as_posix()}" for gml in gml_inputs))
f.write("\n")
f.write("--output\n")
f.write(f'"{output_file}"\n')
f.write(f'"{output_file.as_posix()}"\n')
f.write('--local\n')
f.write("--wkt\n")
f.write(f'"{wkt_path}"\n')
f.write(f'"{wkt_path.as_posix()}"\n')
result = subprocess.run(['java', '-classpath', f'{region_chooser_libs}',
'eu.simstadt.regionchooser.RegionChooserCLI',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment