From e7e88cd701420fde95d4567cf0cc0885d6d866d3 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 20 May 2005 00:12:15 +0000 Subject: [PATCH] bugfix --- src/common/logger.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/logger.py b/src/common/logger.py index e15078a48..245a1315a 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -30,7 +30,7 @@ if os.name == 'nt': # 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 @@ class Logger: 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