[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
This commit is contained in:
Xavier Morel
2009-11-27 12:07:12 +01:00
parent c0450256dc
commit b676be9a97
+2 -1
View File
@@ -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()