[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):
|
if not os.path.isdir(VCARDPATH):
|
||||||
print _('creating %s directory') % VCARDPATH
|
print _('creating %s directory') % VCARDPATH
|
||||||
os.mkdir(VCARDPATH, 0700)
|
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):
|
if not os.path.isfile(LOG_DB_PATH):
|
||||||
create_log_db()
|
create_log_db()
|
||||||
gajim.logger.init_vars()
|
gajim.logger.init_vars()
|
||||||
|
|
|
@ -72,7 +72,7 @@ try:
|
||||||
LOGPATH = LOGPATH.decode(sys.getfilesystemencoding())
|
LOGPATH = LOGPATH.decode(sys.getfilesystemencoding())
|
||||||
VCARDPATH = VCARDPATH.decode(sys.getfilesystemencoding())
|
VCARDPATH = VCARDPATH.decode(sys.getfilesystemencoding())
|
||||||
TMP = TMP.decode(sys.getfilesystemencoding())
|
TMP = TMP.decode(sys.getfilesystemencoding())
|
||||||
AVATAR_PATH = AVATARPATH.decode(sys.getfilesystemencoding())
|
AVATAR_PATH = AVATAR_PATH.decode(sys.getfilesystemencoding())
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue