Skip to content
Snippets Groups Projects
Commit 55dcc3e8 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

create LOGPATH folder if it doesn't exists and ~/.gajim exists

parent 5cca92fb
No related branches found
No related tags found
No related merge requests found
......@@ -41,11 +41,14 @@ def __init__(self):
print _('%s is file but it should be a directory') % dot_gajim
print _('Gajim will now exit')
sys.exit()
if os.path.isdir(dot_gajim):
elif os.path.isdir(dot_gajim):
if os.path.isfile(LOGPATH):
print _('%s is file but it should be a directory') % LOGPATH
print _('Gajim will now exit')
sys.exit()
elif not os.path.exists(LOGPATH):
print _('creating %s directory') % LOGPATH
os.mkdir(LOGPATH)
else: # dot_gajim doesn't exist
if dot_gajim: # is '' on win9x so avoid that
print _('creating %s directory') % dot_gajim
......
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