mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-08-26 09:59:23 +00:00
13 lines
457 B
Python
13 lines
457 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
import requests
|
|
import paths
|
|
import os
|
|
import logging
|
|
log = logging.getLogger("fixes.fix_requests")
|
|
|
|
def fix():
|
|
log.debug("Applying fix for requests...")
|
|
os.environ["REQUESTS_CA_BUNDLE"] = os.path.join(paths.app_path(), "certifi", "cacert.pem")#.encode(paths.fsencoding)
|
|
# log.debug("Changed CA path to %s" % (os.environ["REQUESTS_CA_BUNDLE"]))#.decode(paths.fsencoding)))
|