1 | --- ./base/g.py.orig 2014-03-10 14:49:43.000000000 +0100 |
---|
2 | +++ ./base/g.py 2014-03-10 14:56:40.000000000 +0100 |
---|
3 | @@ -145,16 +145,16 @@ |
---|
4 | |
---|
5 | class SysConfig(ConfigBase): |
---|
6 | def __init__(self): |
---|
7 | - ConfigBase.__init__(self, '/etc/hp/hplip.conf') |
---|
8 | + ConfigBase.__init__(self, '@PREFIX@/etc/hp/hplip.conf') |
---|
9 | |
---|
10 | |
---|
11 | class State(ConfigBase): |
---|
12 | def __init__(self): |
---|
13 | - if not os.path.exists('/var/lib/hp/') and os.geteuid() == 0: |
---|
14 | - os.makedirs('/var/lib/hp/') |
---|
15 | - cmd = 'chmod 755 /var/lib/hp/' |
---|
16 | + if not os.path.exists('@PREFIX@/var/lib/hp/') and os.geteuid() == 0: |
---|
17 | + os.makedirs('@PREFIX@/var/lib/hp/') |
---|
18 | + cmd = 'chmod 755 @PREFIX@/var/lib/hp/' |
---|
19 | os_utils.execute(cmd) |
---|
20 | - ConfigBase.__init__(self, '/var/lib/hp/hplip.state') |
---|
21 | + ConfigBase.__init__(self, '@PREFIX@/var/lib/hp/hplip.state') |
---|
22 | |
---|
23 | |
---|
24 | class UserConfig(ConfigBase): |
---|