Fixed some issues in the built version
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import sys
|
||||
import fix_requests
|
||||
import fix_win32com
|
||||
|
||||
def setup():
|
||||
fix_requests.fix()
|
||||
|
||||
if hasattr(sys, "frozen"):
|
||||
fix_win32com.fix()
|
||||
|
5
src/fixes/fix_win32com.py
Normal file
5
src/fixes/fix_win32com.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import win32com.client
|
||||
def fix():
|
||||
if win32com.client.gencache.is_readonly == True:
|
||||
win32com.client.gencache.is_readonly = False
|
||||
win32com.client.gencache.Rebuild()
|
Reference in New Issue
Block a user