$OpenBSD: patch-newprinter_py,v 1.4 2011/07/29 16:56:32 ajacoutot Exp $
--- newprinter.py.orig	Thu Jul 28 18:04:13 2011
+++ newprinter.py	Fri Jul 29 18:47:58 2011
@@ -1526,7 +1526,7 @@ class NewPrinterGUI(GtkGUI):
         # Try to get make and model via SNMP
         if host:
             os.environ["HOST"] = host
-            cmd = '/usr/lib/cups/backend/snmp "${HOST}"'
+            cmd = '${LOCALBASE}/libexec/cups/backend/snmp "${HOST}"'
             debugprint (host + ": " + cmd)
             stdout = None
             try:
@@ -3375,7 +3375,7 @@ class NewPrinterGUI(GtkGUI):
                 try:
                     # We want this to be in the current natural language,
                     # so we intentionally don't set LC_ALL=C here.
-                    p = subprocess.Popen (['/usr/bin/cupstestppd',
+                    p = subprocess.Popen (['${LOCALBASE}/bin/cupstestppd',
                                            '-rvv', filename],
                                           close_fds=True,
                                           stdin=file("/dev/null"),
