31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
$OpenBSD: patch-ui4_devmgr5_py,v 1.7 2012/12/10 16:00:12 ajacoutot Exp $
|
|
--- ui4/devmgr5.py.orig Tue Nov 20 10:51:40 2012
|
|
+++ ui4/devmgr5.py Mon Dec 10 16:41:21 2012
|
|
@@ -1008,7 +1008,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()
|
|
|
|
@@ -2086,7 +2086,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, log_output=True, password_func=None, timeout=1)
|
|
@@ -2098,7 +2098,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
|