[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:
+2
-1
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user