Skip to content

Commit 6d45d92

Browse files
committed
fix: remove unused global config in load_config and update docstring
Made-with: Cursor
1 parent 50a270e commit 6d45d92

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎thingiverse_publisher/cli.py‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,14 @@ def create_or_update_thing() -> None:
226226

227227
def load_config(configuration_file: str) -> dict | None:
228228
"""
229-
Loads a configuration file into the global config dict.
229+
Load a configuration file and return its contents as a dict.
230230
231231
Args:
232-
configuration_file (str): The path of the configuration file to load.
233-
"""
234-
global config
232+
configuration_file: Path to the JSON/JSON5 configuration file.
235233
234+
Returns:
235+
Parsed config dict, or None if the file is not found.
236+
"""
236237
logging.debug("Loading config from %s...", configuration_file)
237238
try:
238239
with open(configuration_file) as file:

0 commit comments

Comments
 (0)