From e1d2a87fc93dfec347f0674f94f7095e5510dbaf Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Mon, 14 Feb 2011 11:29:14 +0100 Subject: [PATCH] [FIX] tools.config: expansion of user and path should work with multiple addons path too lp bug: https://launchpad.net/bugs/716710 fixed bzr revid: odo@openerp.com-20110214102914-98gdvyx5y4v2kysx --- openerp/tools/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openerp/tools/config.py b/openerp/tools/config.py index 7d0b04739e4..924160b2899 100644 --- a/openerp/tools/config.py +++ b/openerp/tools/config.py @@ -338,7 +338,9 @@ class configmanager(object): if not self.options['addons_path'] or self.options['addons_path']=='None': self.options['addons_path'] = os.path.join(self.options['root_path'], 'addons') else: - self.options['addons_path'] = os.path.abspath(os.path.expanduser(os.path.expandvars(self.options['addons_path']))) + self.options['addons_path'] = ",".join( + os.path.abspath(os.path.expanduser(os.path.expandvars(x))) + for x in self.options['addons_path'].split(',')) self.options['init'] = opt.init and dict.fromkeys(opt.init.split(','), 1) or {} self.options["demo"] = not opt.without_demo and self.options['init'] or {}