From 1656a7e503b53a7db3d99aacc3b4c5b4d4c85d81 Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Tue, 23 Dec 2014 13:44:19 +0100 Subject: [PATCH] [IMP] config: allow defining addon_path in multiline With a config like [options] addons_path: ~/foo, ~/bar '~/bar' was interprated as '\n ~/bar' and is considered as a local directory by os.path.abspath Fixes #4403 --- openerp/tools/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/tools/config.py b/openerp/tools/config.py index 706200e9b9a..73b69c8ef9c 100644 --- a/openerp/tools/config.py +++ b/openerp/tools/config.py @@ -449,7 +449,7 @@ class configmanager(object): self.options['addons_path'] = '%s,%s' % (base_addons, main_addons) else: self.options['addons_path'] = ",".join( - os.path.abspath(os.path.expanduser(os.path.expandvars(x))) + os.path.abspath(os.path.expanduser(os.path.expandvars(x.strip()))) for x in self.options['addons_path'].split(',')) self.options['init'] = opt.init and dict.fromkeys(opt.init.split(','), 1) or {}