optim premat

This commit is contained in:
Colin Goutte 2021-11-14 20:39:14 +01:00
parent f6fd13043e
commit 94a19afacc
1 changed files with 4 additions and 1 deletions

View File

@ -3,13 +3,16 @@ import glob
import configparser
import logging as logger
def read_config(*, pattern="*"):
paths = []
for relpath in glob.glob(f"confs/{pattern}.ini"):
if "/api_client" in relpath:
paths.append(os.path.abspath(relpath))
logger.info("Found api client {relpath} to add")
paths.append(os.path.abspath(relpath))
res = []
for path in paths:
conf = configparser.ConfigParser()