Skip to content
Snippets Groups Projects
Commit 531029c6 authored by nkour's avatar nkour
Browse files

logger.py optparser.py ovewrites

parent 2f469ff4
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,8 @@ if os.name == 'nt':
# win9x, ./logs
LOGPATH = 'Logs'
LOGPATH = LOGPATH.decode(sys.getfilesystemencoding())
class Logger:
def __init__(self):
dot_gajim = os.path.dirname(LOGPATH)
......
......@@ -17,6 +17,7 @@
##
import os
import sys
import locale
from common import gajim
from common import i18n
......@@ -85,6 +86,8 @@ class OptionsParser:
def write(self):
(base_dir, filename) = os.path.split(self.__filename)
base_dir = base_dir.decode(sys.getfilesystemencoding())
filename = filename.decode(sys.getfilesystemencoding())
self.__tempfile = os.path.join(base_dir, '.' + filename)
try:
fd = open(self.__tempfile, 'w')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment