Removed an error in the paths module

This commit is contained in:
Manuel Cortez 2016-06-29 17:21:00 -05:00
parent 23ecd43fc0
commit a8bebc2808
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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