From 16b2937d234c2fed45a07aade402d7bfde77de71 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 18 Jun 2022 15:54:16 -0400 Subject: [PATCH] Passthrough toml lib kwargs --- piker/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/piker/config.py b/piker/config.py index cbe134ea..c7a7acc9 100644 --- a/piker/config.py +++ b/piker/config.py @@ -186,7 +186,9 @@ def repodir(): def load( conf_name: str = 'brokers', - path: str = None + path: str = None, + + **tomlkws, ) -> (dict, str): ''' @@ -211,7 +213,7 @@ def load( with open(path, 'w'): pass # touch - config = toml.load(path) + config = toml.load(path, **tomlkws) log.debug(f"Read config file {path}") return config, path