$OpenBSD: patch-ui4_devmgr5_py,v 1.12 2014/03/13 22:37:27 ajacoutot Exp $
--- ui4/devmgr5.py.orig	Thu Mar  6 06:08:37 2014
+++ ui4/devmgr5.py	Thu Mar 13 23:24:11 2014
@@ -1020,7 +1020,7 @@ class DevMgr5(QMainWindow,  Ui_MainWindow):
                     return
 
                 hplip_conf = ConfigParser.ConfigParser()
-                fp = open("/etc/hp/hplip.conf", "r")
+                fp = open("${SYSCONFDIR}/hp/hplip.conf", "r")
                 hplip_conf.readfp(fp)
                 fp.close()
 
@@ -2099,7 +2099,7 @@ class DevMgr5(QMainWindow,  Ui_MainWindow):
         if utils.which('hp-setup'):
             cmd = 'hp-setup --gui'
         else:
-            cmd = 'python ./setup.py --gui'
+            cmd = '${MODPY_BIN} ./setup.py --gui'
 
         log.debug(cmd)
         utils.run(cmd)
@@ -2111,7 +2111,7 @@ class DevMgr5(QMainWindow,  Ui_MainWindow):
         if utils.which('hp-setup'):
             cmd = 'hp-setup --gui --remove'
         else:
-            cmd = 'python ./setup.py --gui --remove'
+            cmd = '${MODPY_BIN} ./setup.py --gui --remove'
 
         if self.cur_device_uri is not None:
             cmd += ' --device=%s' % self.cur_device_uri
