$OpenBSD: patch-newprinter_py,v 1.5 2011/10/06 06:02:10 ajacoutot Exp $
--- newprinter.py.orig	Mon Sep 26 17:39:20 2011
+++ newprinter.py	Thu Oct  6 08:00:22 2011
@@ -1528,7 +1528,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:
@@ -3387,7 +3387,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"),
