load everything in credentials at once
This commit is contained in:
parent
843d971916
commit
40d114d10a
1 changed files with 5 additions and 2 deletions
7
main.py
7
main.py
|
|
@ -44,8 +44,11 @@ cred_file = Path("credentials.json")
|
||||||
with open(cred_file, "r") as f:
|
with open(cred_file, "r") as f:
|
||||||
CREDENTIALS = json.load(f)
|
CREDENTIALS = json.load(f)
|
||||||
|
|
||||||
os.environ["ADMIN_USER"] = CREDENTIALS["admin_user"]
|
for key, value in CREDENTIALS.items():
|
||||||
os.environ["ADMIN_PASS"] = CREDENTIALS["admin_pass"]
|
os.environ[key] = value
|
||||||
|
|
||||||
|
# os.environ["ADMIN_USER"] = CREDENTIALS["admin_user"]
|
||||||
|
# os.environ["ADMIN_PASS"] = CREDENTIALS["admin_pass"]
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------- define session_id ---------------------------- #
|
# ----------------------------- define session_id ---------------------------- #
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue