From 80d363cd31ec56b72e38e02571285349b60e428e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Wed, 10 Oct 2018 13:51:37 +0200 Subject: [PATCH] [FIX] tools: expand user and vars for data_dir --- odoo/tools/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/odoo/tools/config.py b/odoo/tools/config.py index 475f959a025..be62f7c8b5a 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -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 {})