Refactor of trytond.config to add cache

This removes the need to store configuration in global variable and so make it
easier to update for example for testing.

Closes #14249
This commit is contained in:
Cédric Krier
2025-10-07 08:19:57 +02:00
parent 5fdcba985b
commit 74ee169c54
108 changed files with 505 additions and 405 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ class TrytondConfig(Config):
os.environ['TRYTOND_DATABASE_URI'] = database
if not config_file:
config_file = os.environ.get('TRYTOND_CONFIG')
from trytond.config import config
import trytond.config as config
config.update_etc(config_file)
from trytond.pool import Pool
from trytond.transaction import Transaction