Added logging to fix_libloader.

This commit is contained in:
2019-02-20 10:40:08 -06:00
parent 207315937a
commit 3fce3c58e2
3 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
import logging
import win32com
import paths
win32com.__gen_path__=paths.com_path()
@@ -9,6 +10,8 @@ from win32com.client import gencache
from pywintypes import com_error
from libloader import com
log = logging.getLogger("fixes.fix_libloader")
fixed=False
def patched_getmodule(modname):
@@ -33,4 +36,6 @@ def load_com(*names):
return result
def fix():
com.load_com = load_com
log.debug("Applying fix for Libloader...")
com.load_com = load_com
log.debug("Load_com has been mapped correctly.")