Commit 4fc71952 authored by koniu's avatar koniu
Browse files

py: use paths for config dir rather than file

parent c588606a
...@@ -18,7 +18,7 @@ from pprint import pprint ...@@ -18,7 +18,7 @@ from pprint import pprint
#}}} #}}}
#{{{ settings #{{{ settings
# recoll settings # recoll settings
RECOLL_CONFS = [ '~/.recoll/recoll.conf', '/usr/share/recoll/examples/recoll.conf' ] RECOLL_CONFS = [ '$RECOLL_CONFDIR', '~/.recoll', '/usr/share/recoll/examples' ]
# settings defaults # settings defaults
DEFAULTS = { DEFAULTS = {
...@@ -94,6 +94,8 @@ def get_config(): ...@@ -94,6 +94,8 @@ def get_config():
# find recoll.conf # find recoll.conf
for f in RECOLL_CONFS: for f in RECOLL_CONFS:
f = os.path.expanduser(f) f = os.path.expanduser(f)
f = os.path.expandvars(f)
f += '/recoll.conf'
if os.path.isfile(f): if os.path.isfile(f):
path = f path = f
break break
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment