about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pikepdf/paths.patch
blob: 1bd030c186c23a8ab02925332d5c9fbcb4bb53b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py
index da40043f..4f566f01 100644
--- a/src/pikepdf/_methods.py
+++ b/src/pikepdf/_methods.py
@@ -74,7 +74,7 @@ def _mudraw(buffer, fmt) -> bytes:
         tmp_in.flush()
 
         proc = run(
-            ['mutool', 'draw', '-F', fmt, '-o', '-', tmp_in.name],
+            ['@mutool@', 'draw', '-F', fmt, '-o', '-', tmp_in.name],
             capture_output=True,
             check=True,
         )
diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py
index f89b4f90..f187ebdf 100644
--- a/src/pikepdf/jbig2.py
+++ b/src/pikepdf/jbig2.py
@@ -63,7 +63,7 @@ class JBIG2Decoder(JBIG2DecoderInterface):
             output_path = Path(tmpdir) / "outfile"
 
             args = [
-                "jbig2dec",
+                "@jbig2dec@",
                 "--embedded",
                 "--format",
                 "png",
@@ -90,7 +90,7 @@ class JBIG2Decoder(JBIG2DecoderInterface):
     def _version(self) -> Version:
         try:
             proc = self._run(
-                ['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii'
+                ['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii'
             )
         except (CalledProcessError, FileNotFoundError) as e:
             raise DependencyError("jbig2dec - not installed or not found") from e