add docstring

This commit is contained in:
Daniel 2023-12-11 00:14:13 +01:00
parent 2f6d0c47e5
commit f49029aeed

View file

@ -51,6 +51,7 @@ def generate_random_string(length: int, punctuation=False) -> str:
def load_json_to_environ(cred_file: Path): def load_json_to_environ(cred_file: Path):
"""Load the contents of a json file directly into os.environ. Variable names are inherited"""
with open(cred_file, "r") as f: with open(cred_file, "r") as f:
CREDENTIALS = json.load(f) CREDENTIALS = json.load(f)