[stephan k.] decode path for config
This commit is contained in:
parent
16acf1d4f5
commit
1ce4015512
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue