[REF] config: 'ODOO_RC' environment variable
Look for an environment variable named 'ODOO_RC' to locate an rc file, similar to the 'OPENERP_SERVER' one.
This commit is contained in:
@@ -363,7 +363,7 @@ class configmanager(object):
|
||||
rcfilepath = old_rcfilepath
|
||||
|
||||
self.rcfile = os.path.abspath(
|
||||
self.config_file or opt.config or os.environ.get('OPENERP_SERVER') or rcfilepath)
|
||||
self.config_file or opt.config or os.environ.get('ODOO_RC') or os.environ.get('OPENERP_SERVER') or rcfilepath)
|
||||
self.load()
|
||||
|
||||
# Verify that we want to log or not, if not the output will go to stdout
|
||||
|
||||
Reference in New Issue
Block a user