From e018fd8b2b448cc75a8b6398ba90dc769f742db0 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Fri, 14 Oct 2016 17:57:39 +0200 Subject: [PATCH] [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. --- odoo/tools/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/tools/config.py b/odoo/tools/config.py index 5584002c520..ea030a80f10 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -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