Use TRYTOND_CONFIG environ as default config_file

To follow the same behavior as trytond.

issue4233
review11541002
This commit is contained in:
Cédric Krier
2014-10-10 09:57:56 +02:00
parent 25e44acbaa
commit 267016e2ed
+1 -1
View File
@@ -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')