optim premat
This commit is contained in:
parent
f6fd13043e
commit
94a19afacc
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue