2015-02-22 18:45:26 -06:00
|
|
|
# -*- coding: utf-8 -*-
|
2015-03-11 05:54:46 -06:00
|
|
|
""" This module contains some bugfixes for packages used in TWBlue."""
|
2018-11-22 13:35:19 -06:00
|
|
|
from __future__ import absolute_import
|
2019-06-06 11:52:23 -05:00
|
|
|
from __future__ import unicode_literals
|
2015-06-12 12:26:14 -05:00
|
|
|
import sys
|
2018-11-22 13:35:19 -06:00
|
|
|
from . import fix_arrow # A few new locales for Three languages in arrow.
|
2022-12-09 12:36:00 -06:00
|
|
|
#from . import fix_libloader # Regenerates comcache properly.
|
2018-11-22 13:35:19 -06:00
|
|
|
from . import fix_urllib3_warnings # Avoiding some SSL warnings related to Twython.
|
2022-12-09 12:36:00 -06:00
|
|
|
#from . import fix_win32com
|
2019-12-16 16:52:59 -06:00
|
|
|
#from . import fix_requests #fix cacert.pem location for TWBlue binary copies
|
2015-02-22 18:45:26 -06:00
|
|
|
def setup():
|
2021-06-16 16:18:41 -05:00
|
|
|
fix_arrow.fix()
|
2022-12-09 12:36:00 -06:00
|
|
|
# if hasattr(sys, "frozen"):
|
|
|
|
# fix_libloader.fix()
|
|
|
|
# fix_win32com.fix()
|
2019-12-16 16:52:59 -06:00
|
|
|
# fix_requests.fix()
|
2019-10-03 17:18:06 -05:00
|
|
|
# else:
|
|
|
|
# fix_requests.fix(False)
|
2021-06-16 16:18:41 -05:00
|
|
|
fix_urllib3_warnings.fix()
|