add docstring
This commit is contained in:
parent
2f6d0c47e5
commit
f49029aeed
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ def generate_random_string(length: int, punctuation=False) -> str:
|
|||
|
||||
|
||||
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:
|
||||
CREDENTIALS = json.load(f)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue