Ticket #42776: patch-fax_backend_hpfax.py

File patch-fax_backend_hpfax.py, 622 bytes (added by okmacports@…, 10 years ago)
Line 
1--- ./fax/backend/hpfax.py.orig 2014-03-10 14:50:44.000000000 +0100
2+++ ./fax/backend/hpfax.py      2014-03-10 14:56:39.000000000 +0100
3@@ -46,7 +46,7 @@
4 
5 job_id = 0
6 pid = os.getpid()
7-config_file = '/etc/hp/hplip.conf'
8+config_file = '@PREFIX@/etc/hp/hplip.conf'
9 home_dir = ''
10 
11 
12@@ -65,7 +65,7 @@
13         bug("Error setting home directory: home= under [dirs] not found.")
14         sys.exit(1)
15 else:
16-    bug("Error setting home directory: /etc/hp/hplip.conf not found")
17+    bug("Error setting home directory: @PREFIX@/etc/hp/hplip.conf not found")
18     sys.exit(1)
19 
20 if not home_dir or not os.path.exists(home_dir):