From a8bebc28080eb5c594dab05dd0f242c9f68332a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Wed, 29 Jun 2016 17:21:00 -0500 Subject: [PATCH] Removed an error in the paths module --- src/main.py | 2 +- src/paths.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.py b/src/main.py index 7041811..80863e7 100644 --- a/src/main.py +++ b/src/main.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- +import logger import sys import fixes if hasattr(sys, "frozen"): fixes.setup() -import logger import platform import languageHandler import widgetUtils diff --git a/src/paths.py b/src/paths.py index 715c779..c99bbe0 100644 --- a/src/paths.py +++ b/src/paths.py @@ -2,7 +2,7 @@ import platform import os import sys -import logging +#import logging from platform_utils import paths as paths_ from functools import wraps @@ -10,7 +10,7 @@ from functools import wraps mode = "portable" directory = None -log = logging.getLogger("paths") +#log = logging.getLogger("paths") def merge_paths(func): @wraps(func) @@ -31,7 +31,7 @@ def config_path(): elif mode == "installed": path = data_path("config") if not os.path.exists(path): - log.debug("%s path does not exist, creating..." % (path,)) +# log.debug("%s path does not exist, creating..." % (path,)) os.mkdir(path) return path @@ -44,7 +44,7 @@ def logs_path(): elif mode == "installed": path = data_path("logs") if not os.path.exists(path): - log.debug("%s path does not exist, creating..." % (path,)) +# log.debug("%s path does not exist, creating..." % (path,)) os.mkdir(path) return path @@ -75,6 +75,6 @@ def com_path(): elif mode == "installed": path = data_path(u"com_cache") if not os.path.exists(path): - log.debug("%s path does not exist, creating..." % (path,)) +# log.debug("%s path does not exist, creating..." % (path,)) os.mkdir(path) return path