From 20b3161847b1d86e082776ae2b05723a2e4929a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 12 Oct 2020 17:46:39 +0200 Subject: [PATCH] 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 --- proteus/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proteus/config.py b/proteus/config.py index 0157e220e2..094eed5108 100644 --- a/proteus/config.py +++ b/proteus/config.py @@ -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