Skip to content
Snippets Groups Projects
Commit 051bff60 authored by nkour's avatar nkour
Browse files

[jim++] create paths correctly. fixes #1542

parent 047f7ce2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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