Included accessible_output2 fixed

This commit is contained in:
2016-04-05 12:44:35 -05:00
parent 33df4b5a39
commit 6e35d6b5d4
24 changed files with 430 additions and 1264 deletions

View File

@@ -1,13 +1,26 @@
from pywintypes import com_error
import win32com
import paths
win32com.__gen_path__=paths.data_path(u"com_cache")
import sys
import os
sys.path.append(os.path.join(win32com.__gen_path__, "."))
from win32com.client import gencache
fixed=False
def prepare_gencache():
gencache.is_readonly = False
gencache.GetGeneratePath()
def patched_getmodule(modname):
mod=__import__(modname)
return sys.modules[modname]
def load_com(*names):
global fixed
if fixed==False:
gencache._GetModule=patched_getmodule
fixed=True
result = None
for name in names:
try: