Spaces:
Running
Running
File size: 352 Bytes
babcd78 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from pathlib import Path
from tclogger import logger, OSEnver
secrets_path = Path(__file__).parents[1] / "secrets.json"
ENVER = OSEnver(secrets_path)
http_proxy = ENVER["http_proxy"]
if http_proxy:
logger.note(f"> Using proxy: {http_proxy}")
PROXIES = {
"http": http_proxy,
"https": http_proxy,
}
else:
PROXIES = None
|