Loading generateBaseline/postprocessing.py +1 −8 Original line number Diff line number Diff line Loading @@ -147,16 +147,9 @@ def refresh_docx_fields(input_path: str, image: str = "docx-field-refresh") -> s # Calculate relative path from mount point to file # If file is at /data/baseline/file.docx, relative path is baseline/file.docx # If file is at /data/file.docx, relative path is file.docx try: relative_path = input_path.relative_to(mount_point) file_path_in_container = f"/data/{input_path.parent.name}/{input_path.name}" except ValueError: # If file is not under /data, use just the filename file_path_in_container = f"/data/{input_path.name}" relative_path = input_path.name print(f"📂 Mount point: {mount_point}") print(f"📂 Relative path: {relative_path}") print(f"📂 File path in container: {file_path_in_container}") # Run LibreOffice to refresh fields (convert docx to docx refreshes fields) Loading Loading
generateBaseline/postprocessing.py +1 −8 Original line number Diff line number Diff line Loading @@ -147,16 +147,9 @@ def refresh_docx_fields(input_path: str, image: str = "docx-field-refresh") -> s # Calculate relative path from mount point to file # If file is at /data/baseline/file.docx, relative path is baseline/file.docx # If file is at /data/file.docx, relative path is file.docx try: relative_path = input_path.relative_to(mount_point) file_path_in_container = f"/data/{input_path.parent.name}/{input_path.name}" except ValueError: # If file is not under /data, use just the filename file_path_in_container = f"/data/{input_path.name}" relative_path = input_path.name print(f"📂 Mount point: {mount_point}") print(f"📂 Relative path: {relative_path}") print(f"📂 File path in container: {file_path_in_container}") # Run LibreOffice to refresh fields (convert docx to docx refreshes fields) Loading