Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Francois Dockes
recoll-webui
Commits
4fc71952
Commit
4fc71952
authored
Dec 22, 2012
by
koniu
Browse files
py: use paths for config dir rather than file
parent
c588606a
Changes
1
Hide whitespace changes
Inline
Side-by-side
webui.py
View file @
4fc71952
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment