File size: 469 Bytes
deca16d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from pathlib import Path
from tclogger import logger, OSEnver


config_root = Path(__file__).parents[1] / "configs"

secrets_path = config_root / "secrets.json"
SECRETS = OSEnver(secrets_path)

http_proxy = SECRETS["http_proxy"]
if http_proxy:
    logger.note(f"> Using proxy: {http_proxy}")
    PROXIES = {
        "http": http_proxy,
        "https": http_proxy,
    }
else:
    PROXIES = None

config_path = config_root / "config.json"
CONFIG = OSEnver(config_path)