[FIX] tools: expand user and vars for data_dir

This commit is contained in:
Sébastien Theys
2018-10-10 14:03:59 +02:00
committed by Christophe Simonis
parent 5b594dea43
commit 80d363cd31
+2
View File
@@ -448,6 +448,8 @@ class configmanager(object):
os.path.abspath(os.path.expanduser(os.path.expandvars(x.strip())))
for x in self.options['addons_path'].split(','))
self.options['data_dir'] = os.path.abspath(os.path.expanduser(os.path.expandvars(self.options['data_dir'].strip())))
self.options['init'] = opt.init and dict.fromkeys(opt.init.split(','), 1) or {}
self.options['demo'] = (dict(self.options['init'])
if not self.options['without_demo'] else {})