mirror of
https://github.com/koniu/recoll-webui.git
synced 2025-10-03 09:49:25 +02:00
Expand tilde in topdirs (fixes #50)
Topdirs in recoll.conf starting with ~ wouldn't show in 'Folder' dropdown because glob.glob() doesn't do tilde expansion. Explicit os.path.expanduser() added.
This commit is contained in:
parent
66321af8a3
commit
cfb65646f4
1 changed files with 2 additions and 1 deletions
3
webui.py
3
webui.py
|
@ -106,7 +106,8 @@ def get_config():
|
||||||
# get useful things from recoll.conf
|
# get useful things from recoll.conf
|
||||||
rclconf = rclconfig.RclConfig()
|
rclconf = rclconfig.RclConfig()
|
||||||
config['confdir'] = rclconf.getConfDir()
|
config['confdir'] = rclconf.getConfDir()
|
||||||
config['dirs'] = shlex.split(rclconf.getConfParam('topdirs'))
|
config['dirs'] = [os.path.expanduser(d) for d in
|
||||||
|
shlex.split(rclconf.getConfParam('topdirs'))]
|
||||||
config['stemlang'] = rclconf.getConfParam('indexstemminglanguages')
|
config['stemlang'] = rclconf.getConfParam('indexstemminglanguages')
|
||||||
# get config from cookies or defaults
|
# get config from cookies or defaults
|
||||||
for k, v in DEFAULTS.items():
|
for k, v in DEFAULTS.items():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue