Commit 1f4d20e4 authored by Eric Duminil's avatar Eric Duminil
Browse files

Easier logic

parent e318fad5
......@@ -255,8 +255,8 @@ def run_workflow(workflow_path: Path, citygmls: list[str]) -> list[Path]:
def _is_in_proj_folder(path: Path) -> bool:
"""Return True if path is inside a .proj directory."""
return any(p.suffix == ".proj" for p in path.parents)
"""Return True if path is directly inside a .proj directory."""
return path.parent.suffix == ".proj"
def _resolve_project(citygml_path: Path, project_path: Path | None) -> tuple[Path, str]:
......
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