changeset ecafc29b3a13 in proteus:default details: https://hg.tryton.org/proteus?cmd=changeset;node=ecafc29b3a13 description: 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 diffstat: proteus/config.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r 8e60d41aa412 -r ecafc29b3a13 proteus/config.py --- a/proteus/config.py Sat Sep 05 22:59:38 2020 +0200 +++ b/proteus/config.py Mon Oct 12 17:46:39 2020 +0200 @@ -232,7 +232,8 @@ 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