ports/print/hplip/patches/patch-fax_backend_hpfax_py

21 lines
646 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
--- fax/backend/hpfax.py.orig Thu Jan 29 13:20:35 2015
+++ fax/backend/hpfax.py Thu Feb 5 14:28:00 2015
@@ -49,7 +49,7 @@ PIPE_BUF = 4096
job_id = 0
pid = os.getpid()
-config_file = '/etc/hp/hplip.conf'
+config_file = '${SYSCONFDIR}/hp/hplip.conf'
home_dir = ''
@@ -68,7 +68,7 @@ if os.path.exists(config_file):
bug("Error setting home directory: home= under [dirs] not found.")
sys.exit(1)
else:
- bug("Error setting home directory: /etc/hp/hplip.conf not found")
+ bug("Error setting home directory: ${SYSCONFDIR}/hp/hplip.conf not found")
sys.exit(1)
if not home_dir or not os.path.exists(home_dir):