Prevent update configuration after modules are imported

Modules can store copies of the configuration for performance reason so we must
prevent to change the configuration after it happens.

issue9679
review318351002
This commit is contained in:
Cédric Krier
2020-10-12 17:46:39 +02:00
parent 982990fe4d
commit 20b3161847
+2 -1
View File
@@ -232,7 +232,8 @@ class TrytondConfig(Config):
if not config_file:
config_file = os.environ.get('TRYTOND_CONFIG')
from trytond.config import config
config.update_etc(config_file)
if config_file:
config.update_etc(config_file)
from trytond.pool import Pool
from trytond.transaction import Transaction
self.database = database