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

bugfix

parent 19235f6f
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@
# Documents and Settings\[User Name]\Application Data\Gajim\logs
LOGPATH = os.environ['appdata'] + '/Gajim/logs'
except KeyError:
# win9x, so use ~/gajim/logs which is WINDOWS\Application Data\Gajim\logs
# win9x, so use ~/Gajim/logs which is WINDOWS\Application Data\Gajim\logs
LOGPATH = os.path.expanduser('~/Gajim/logs')
class Logger:
......@@ -42,8 +42,7 @@ def __init__(self):
sys.exit()
if os.path.isdir(dot_gajim):
if os.path.isfile(LOGPATH):
if os.name == 'nt':
print LOGPATH, 'is file but it should be a directory'
print LOGPATH, 'is file but it should be a directory'
print 'Gajim will now exit'
sys.exit()
else: #create ~/.gajim/logs if it doesn't exist
......
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