mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-01-19 00:40:42 -06:00
Added a fix for gencache on win32com
This commit is contained in:
parent
70076aadb0
commit
33733eb2c4
@ -2,11 +2,11 @@
|
|||||||
""" This module contains some bugfixes for packages used in TWBlue."""
|
""" This module contains some bugfixes for packages used in TWBlue."""
|
||||||
import sys
|
import sys
|
||||||
import fix_arrow # A few new locales for Three languages in arrow.
|
import fix_arrow # A few new locales for Three languages in arrow.
|
||||||
# import fix_requests_cert_location # For a better compilation in Windows.
|
|
||||||
import fix_urllib3_warnings # Avoiding some SSL warnings related to Twython.
|
import fix_urllib3_warnings # Avoiding some SSL warnings related to Twython.
|
||||||
|
import fix_win32com
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
fix_arrow.fix()
|
fix_arrow.fix()
|
||||||
# if hasattr(sys, "frozen"):
|
if hasattr(sys, "frozen"):
|
||||||
# fix_requests_cert_location.fix()
|
fix_win32com.fix()
|
||||||
fix_urllib3_warnings.fix()
|
fix_urllib3_warnings.fix()
|
@ -1,9 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
import paths
|
|
||||||
|
|
||||||
def where():
|
|
||||||
return paths.app_path(r"requests\cacert.pem")
|
|
||||||
|
|
||||||
def fix():
|
|
||||||
from requests import certs
|
|
||||||
certs.where = where
|
|
7
src/fixes/fix_win32com.py
Normal file
7
src/fixes/fix_win32com.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import win32com.client
|
||||||
|
|
||||||
|
|
||||||
|
def fix():
|
||||||
|
if win32com.client.gencache.is_readonly == True:
|
||||||
|
win32com.client.gencache.is_readonly = False
|
||||||
|
win32com.client.gencache.Rebuild()
|
Loading…
x
Reference in New Issue
Block a user