From 3fce3c58e2ad6d7887b10db1105dc4d4f8784273 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 20 Feb 2019 10:40:08 -0600 Subject: [PATCH] Added logging to fix_libloader. --- src/application.py | 2 +- src/fixes/fix_libloader.py | 7 ++++++- src/main.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/application.py b/src/application.py index 0d9096f8..7aae398c 100644 --- a/src/application.py +++ b/src/application.py @@ -8,7 +8,7 @@ if snapshot == False: update_url = 'https://twblue.es/updates/stable.php' mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/stable.json' else: - version = "13" + version = "14" update_url = 'https://twblue.es/updates/snapshot.php' mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/snapshots.json' authors = [u"Manuel Cortéz", u"José Manuel Delicado"] diff --git a/src/fixes/fix_libloader.py b/src/fixes/fix_libloader.py index 67f312a4..f94978c5 100644 --- a/src/fixes/fix_libloader.py +++ b/src/fixes/fix_libloader.py @@ -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 \ No newline at end of file + log.debug("Applying fix for Libloader...") + com.load_com = load_com + log.debug("Load_com has been mapped correctly.") \ No newline at end of file diff --git a/src/main.py b/src/main.py index 8577548c..85cd97f4 100644 --- a/src/main.py +++ b/src/main.py @@ -68,9 +68,9 @@ def setup(): log.debug("Application path is %s" % (paths.app_path(),)) log.debug("config path is %s" % (paths.config_path(),)) sound.setup() - output.setup() languageHandler.setLanguage(config.app["app-settings"]["language"]) fixes.setup() + output.setup() keys.setup() from controller import mainController from sessionmanager import sessionManager