Use TRYTOND_CONFIG environ as default config_file
To follow the same behavior as trytond. issue4233 review11541002
This commit is contained in:
+1
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user