From 267016e2ed123a302efd6316fe9a7f2c7dd06c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 10 Oct 2014 09:57:56 +0200 Subject: [PATCH] Use TRYTOND_CONFIG environ as default config_file To follow the same behavior as trytond. issue4233 review11541002 --- proteus/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proteus/config.py b/proteus/config.py index a60ffb164c..c01e4514ce 100644 --- a/proteus/config.py +++ b/proteus/config.py @@ -192,7 +192,7 @@ class TrytondConfig(Config): 'Configuration for trytond' def __init__(self, database=None, user='admin', language='en_US', - password='', config_file=None): + password='', config_file=os.environ.get('TRYTOND_CONFIG')): super(TrytondConfig, self).__init__() if not database: database = os.environ.get('TRYTOND_DATABASE_URI')