summaryrefslogtreecommitdiffstats
path: root/print/system-config-printer/files/patch-cupshelpers_cupshelpers.py
blob: 079c395adf404cc9eeedc535d53a49847ad6f005 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- cupshelpers/cupshelpers.py.orig 2009-12-22 09:44:19.000000000 -0500
+++ cupshelpers/cupshelpers.py  2009-12-29 00:08:26.000000000 -0500
@@ -663,7 +663,7 @@
 
     # First, a local function.  How to check that something exists
     # in a path:
-    def pathcheck (name, path="/usr/bin:/bin"):
+    def pathcheck (name, path="%%LOCALBASE%%/bin:%%PREFIX%%/bin:/usr/bin:/bin"):
         if name == "-":
             # A filter of "-" means that no filter is required,
             # i.e. the device accepts the given format as-is.
@@ -765,7 +765,7 @@
                     continue
 
                 exepath = pathcheck (exe,
-                                     "/usr/lib/cups/filter:"
+                                     "%%LOCALBASE%%/libexec/cups/filter:"
                                      "/usr/lib64/cups/filter")
 
     if exe and not exepath: