diff --git a/odoo/tools/config.py b/odoo/tools/config.py index cba1786798d..7ef79f471b5 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -556,7 +556,7 @@ class configmanager(object): path = path.strip() res = os.path.abspath(os.path.expanduser(path)) if not os.path.isdir(res): - raise optparse.OptionValueError("option %s: no such directory: %r" % (opt, path)) + raise optparse.OptionValueError("option %s: no such directory: %r" % (opt, res)) if not self._is_addons_path(res): raise optparse.OptionValueError("option %s: the path %r is not a valid addons directory" % (opt, path)) ad_paths.append(res)