Commit e07fb2e3 authored by Eric Duminil's avatar Eric Duminil
Browse files

Make sure CityGML is found

parent 28d61b37
......@@ -255,6 +255,8 @@ def _resolve_project(citygml_path: Path, project_path: Path | None) -> tuple[Pat
- CityGML inside a .proj folder: use parent as project, reference by name.
- Neither: create a temporary repository under /tmp (not auto-cleaned).
"""
if not citygml_path.exists():
raise FileNotFoundError(f"{citygml_path} not found")
if project_path is not None:
project_path.mkdir(exist_ok=True, parents=True)
dest = project_path / citygml_path.name
......
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