summary refs log blame commit diff
path: root/pkgs/development/python-modules/pikepdf/paths.patch
blob: 7db73bb1a6dd20a8cfb9a7e6d39eea213168445a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                              
                             

                             
                                                      




                                                             
                                 
                        
          
                                                        
                             

                          
                                    

                                               















                                                                                       
 






                                                                                           
diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py
index 87e99fe..253a701 100644
--- a/src/pikepdf/_methods.py
+++ b/src/pikepdf/_methods.py
@@ -204,7 +204,7 @@ def _mudraw(buffer, fmt) -> bytes:
         tmp_in.flush()
 
         proc = run(
-            ['mudraw', '-F', fmt, '-o', '-', tmp_in.name],
+            ['@mudraw@', '-F', fmt, '-o', '-', tmp_in.name],
             capture_output=True,
             check=True,
         )
diff --git a/src/pikepdf/jbig2.py b/src/pikepdf/jbig2.py
index 04c762d..924727c 100644
--- a/src/pikepdf/jbig2.py
+++ b/src/pikepdf/jbig2.py
@@ -26,7 +26,7 @@ def extract_jbig2(
         output_path = Path(tmpdir) / "outfile"
 
         args = [
-            "jbig2dec",
+            "@jbig2dec@",
             "--embedded",
             "--format",
             "png",
@@ -59,7 +59,7 @@ def extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes:
         output_path = Path(tmpdir) / "outfile"
 
         args = [
-            "jbig2dec",
+            "@jbig2dec@",
             "--embedded",
             "--format",
             "png",
@@ -84,7 +84,7 @@ def extract_jbig2_bytes(jbig2: bytes, jbig2_globals: bytes) -> bytes:
 
 def jbig2dec_available() -> bool:
     try:
-        proc = run(['jbig2dec', '--version'], stdout=PIPE, check=True, encoding='ascii')
+        proc = run(['@jbig2dec@', '--version'], stdout=PIPE, check=True, encoding='ascii')
     except (CalledProcessError, FileNotFoundError):
         return False
     else: