From 358784233fa8feac56db0af832c2dbd9776d59a1 Mon Sep 17 00:00:00 2001 From: Sadhana Ravikumar Date: Tue, 23 Jun 2026 13:50:03 -0400 Subject: [PATCH] Copy pipeline graph to temp dir to avoid spaces (#473) --- src/openlifu/nav/photoscan.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/openlifu/nav/photoscan.py b/src/openlifu/nav/photoscan.py index 41efea2f..acdfd0bc 100644 --- a/src/openlifu/nav/photoscan.py +++ b/src/openlifu/nav/photoscan.py @@ -422,10 +422,14 @@ def progress_callback(progress_percent : int, step_description : str): # noqa: A cache_dir = temp_dir / "MeshroomCache" pair_file_path = cache_dir / "imageMatches.txt" + # Copy pipeline to temp directory without spaces + pipeline_copied = temp_dir / f"{pipeline_name}.mg" + shutil.copy(pipeline, pipeline_copied) + project_file = temp_dir / "project.mg" command = [ "meshroom_batch", - "--pipeline", pipeline.as_posix(), + "--pipeline", pipeline_copied.as_posix(), "--output", output_dir.as_posix(), "--input", images_dir.as_posix(), "--save", project_file.as_posix(),