-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
18 lines (14 loc) · 679 Bytes
/
config.py
File metadata and controls
18 lines (14 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os
import json
from os import path
config_file = "example.config.json"
if path.isfile('config.json'):
config_file = 'config.json'
with open(os.path.join(os.path.join(os.getcwd()), "config.json"), 'r') as configs:
config_object = json.loads(configs.read())
azure_storage_access_key = config_object["default"]["storage_access_key"]
azure_storage_account_name = config_object["default"]["storage_account_name"]
azure_connection_string = config_object["default"]["azure_connection_string"]
azure_share_name = config_object["default"]["share_name"]
sender_mail = config_object["default"]["sender_mail"]
sender_mail_pwd = config_object["default"]["sender_mail_pwd"]