Cache the module configuration

This commit is contained in:
Cédric Krier
2025-09-18 10:17:27 +02:00
parent 8e1c951e1e
commit ee18ba3924
+2
View File
@@ -7,6 +7,7 @@ import os
import pkgutil
import warnings
from collections import defaultdict
from functools import cache
from glob import iglob
from sql import Table
@@ -31,6 +32,7 @@ MODULES_PATH = os.path.abspath(os.path.dirname(__file__))
MODULES = []
@cache
def parse_module_config(name):
"Return a ConfigParser instance and directory of the module"
config = configparser.ConfigParser()