Merge pull request #1032 from echedey-ls/stable

Add `gswin64c` as another possible GS executable
This commit is contained in:
Jeremy Singer-Vine
2023-10-28 09:10:02 -04:00
committed by GitHub
+2 -1
View File
@@ -11,7 +11,8 @@ def _repair(
gs_path: Optional[Union[str, pathlib.Path]] = None, gs_path: Optional[Union[str, pathlib.Path]] = None,
) -> BytesIO: ) -> BytesIO:
executable = gs_path or shutil.which("gs") or shutil.which("gswin32c") executable = (gs_path or shutil.which("gs") or shutil.which("gswin32c")
or shutil.which("gswin64c"))
if executable is None: # pragma: nocover if executable is None: # pragma: nocover
raise Exception( raise Exception(
"Cannot find Ghostscript, which is required for repairs.\n" "Cannot find Ghostscript, which is required for repairs.\n"