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 {}