[jim++] create paths correctly. fixes #1542
This commit is contained in:
parent
047f7ce21e
commit
051bff60c7
|
@ -115,6 +115,9 @@ def check_and_possibly_create_paths():
|
|||
if not os.path.isdir(VCARDPATH):
|
||||
print _('creating %s directory') % VCARDPATH
|
||||
os.mkdir(VCARDPATH, 0700)
|
||||
if not os.path.exists(AVATAR_PATH):
|
||||
print _('creating %s directory') % AVATAR_PATH
|
||||
os.mkdir(AVATAR_PATH, 0700)
|
||||
if not os.path.isfile(LOG_DB_PATH):
|
||||
create_log_db()
|
||||
gajim.logger.init_vars()
|
||||
|
|
|
@ -72,7 +72,7 @@ try:
|
|||
LOGPATH = LOGPATH.decode(sys.getfilesystemencoding())
|
||||
VCARDPATH = VCARDPATH.decode(sys.getfilesystemencoding())
|
||||
TMP = TMP.decode(sys.getfilesystemencoding())
|
||||
AVATAR_PATH = AVATARPATH.decode(sys.getfilesystemencoding())
|
||||
AVATAR_PATH = AVATAR_PATH.decode(sys.getfilesystemencoding())
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue