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
#}}}
#{{{ 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
DEFAULTS = {
......@@ -94,6 +94,8 @@ def get_config():
# find recoll.conf
for f in RECOLL_CONFS:
f = os.path.expanduser(f)
f = os.path.expandvars(f)
f += '/recoll.conf'
if os.path.isfile(f):
path = f
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