[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:
Simon Lejeune
2016-10-14 18:02:30 +02:00
parent f72c7c3adf
commit e018fd8b2b
+1 -1
View File
@@ -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