Passthrough toml lib kwargs

lifo_pps_ib
Tyler Goodlet 2022-06-18 15:54:16 -04:00
parent bfad676b7c
commit 16b2937d23
1 changed files with 4 additions and 2 deletions

View File

@ -186,7 +186,9 @@ def repodir():
def load( def load(
conf_name: str = 'brokers', conf_name: str = 'brokers',
path: str = None path: str = None,
**tomlkws,
) -> (dict, str): ) -> (dict, str):
''' '''
@ -211,7 +213,7 @@ def load(
with open(path, 'w'): with open(path, 'w'):
pass # touch pass # touch
config = toml.load(path) config = toml.load(path, **tomlkws)
log.debug(f"Read config file {path}") log.debug(f"Read config file {path}")
return config, path return config, path