2017-06-15 22:11:31 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
""" This module contains some bugfixes for packages used in TWBlue."""
|
2017-06-17 00:58:38 +00:00
|
|
|
|
2017-06-15 22:11:31 +00:00
|
|
|
import sys
|
|
|
|
from . import fix_arrow # A few new locales for Three languages in arrow.
|
|
|
|
from . import fix_urllib3_warnings # Avoiding some SSL warnings related to Twython.
|
|
|
|
from . import fix_win32com
|
|
|
|
from . import fix_requests #fix cacert.pem location for TWBlue binary copies
|
|
|
|
def setup():
|
|
|
|
fix_arrow.fix()
|
|
|
|
if hasattr(sys, "frozen"):
|
|
|
|
fix_win32com.fix()
|
|
|
|
fix_requests.fix(True)
|
|
|
|
else:
|
|
|
|
fix_requests.fix(False)
|
2015-06-12 12:26:14 -05:00
|
|
|
fix_urllib3_warnings.fix()
|