Loading generateBaseline/postprocessing.py +3 −3 Original line number Diff line number Diff line Loading @@ -145,9 +145,9 @@ def refresh_docx_fields(input_path: str, image: str = "docx-field-refresh") -> s # If file is in baseline/, mount the parent directory (working folder) # Otherwise mount the file's parent directory if input_path.parent.name == "baseline": mount_point_host = input_path.parent.parent # Working folder containing baseline mount_point_host = input_path.parent.parent.resolve() # Working folder containing baseline else: mount_point_host = input_path.parent mount_point_host = input_path.parent.resolve() mount_point_container = "/data" file_path_in_container = f"{mount_point_container}/{input_path.relative_to(mount_point_host)}" Loading Loading @@ -200,7 +200,7 @@ def refresh_docx_fields(input_path: str, image: str = "docx-field-refresh") -> s "-v", f"{mount_point_host}:{mount_point_container}", "--entrypoint", "/bin/bash", image, "-c", f"ls -la {mount_point_container} && pwd && whoami && echo 'Mount point contents:' && ls -la {mount_point_container}/baseline/ 2>/dev/null || echo 'No baseline directory'", "-c", f"echo '=== Container Diagnostics ===' && pwd && whoami && echo '=== /data contents ===' && ls -la {mount_point_container} && echo '=== /data/baseline contents ===' && ls -la {mount_point_container}/baseline/ 2>/dev/null || echo 'No baseline directory' && echo '=== Checking if file exists ===' && ls -la {file_path_in_container} 2>/dev/null || echo 'File not found: {file_path_in_container}'", ] subprocess.run(diag_cmd, check=False) # Don't fail if diagnostic fails Loading Loading
generateBaseline/postprocessing.py +3 −3 Original line number Diff line number Diff line Loading @@ -145,9 +145,9 @@ def refresh_docx_fields(input_path: str, image: str = "docx-field-refresh") -> s # If file is in baseline/, mount the parent directory (working folder) # Otherwise mount the file's parent directory if input_path.parent.name == "baseline": mount_point_host = input_path.parent.parent # Working folder containing baseline mount_point_host = input_path.parent.parent.resolve() # Working folder containing baseline else: mount_point_host = input_path.parent mount_point_host = input_path.parent.resolve() mount_point_container = "/data" file_path_in_container = f"{mount_point_container}/{input_path.relative_to(mount_point_host)}" Loading Loading @@ -200,7 +200,7 @@ def refresh_docx_fields(input_path: str, image: str = "docx-field-refresh") -> s "-v", f"{mount_point_host}:{mount_point_container}", "--entrypoint", "/bin/bash", image, "-c", f"ls -la {mount_point_container} && pwd && whoami && echo 'Mount point contents:' && ls -la {mount_point_container}/baseline/ 2>/dev/null || echo 'No baseline directory'", "-c", f"echo '=== Container Diagnostics ===' && pwd && whoami && echo '=== /data contents ===' && ls -la {mount_point_container} && echo '=== /data/baseline contents ===' && ls -la {mount_point_container}/baseline/ 2>/dev/null || echo 'No baseline directory' && echo '=== Checking if file exists ===' && ls -la {file_path_in_container} 2>/dev/null || echo 'File not found: {file_path_in_container}'", ] subprocess.run(diag_cmd, check=False) # Don't fail if diagnostic fails Loading