From b676be9a97cfcce751a35afed6159d61591227c2 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 27 Nov 2009 12:07:12 +0100 Subject: [PATCH] [FIX] set absolute path for the config file to avoid the save() method breaking on single file, since os.path.exists('') returns false and you can't create the current directory bzr revid: xmo@tinyerp.com-20091127110712-dmj8pwl8xcpxk0fj --- bin/tools/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tools/config.py b/bin/tools/config.py index 1621a11f9c2..9e092434bb8 100644 --- a/bin/tools/config.py +++ b/bin/tools/config.py @@ -204,7 +204,8 @@ class configmanager(object): else: rcfilepath = os.path.expanduser('~/.openerp_serverrc') - self.rcfile = fname or opt.config or os.environ.get('OPENERP_SERVER') or rcfilepath + self.rcfile = os.path.abspath( + fname or opt.config or os.environ.get('OPENERP_SERVER') or rcfilepath) self.load()