1 parent 50a270e commit 6d45d92Copy full SHA for 6d45d92
1 file changed
thingiverse_publisher/cli.py
@@ -226,13 +226,14 @@ def create_or_update_thing() -> None:
226
227
def load_config(configuration_file: str) -> dict | None:
228
"""
229
- Loads a configuration file into the global config dict.
+ Load a configuration file and return its contents as a dict.
230
231
Args:
232
- configuration_file (str): The path of the configuration file to load.
233
- """
234
- global config
+ configuration_file: Path to the JSON/JSON5 configuration file.
235
+ Returns:
+ Parsed config dict, or None if the file is not found.
236
+ """
237
logging.debug("Loading config from %s...", configuration_file)
238
try:
239
with open(configuration_file) as file:
0 commit comments