This commit is contained in:
Nikos Kouremenos 2005-08-05 12:40:32 +00:00
parent e0f766de1c
commit fbd2633695
1 changed files with 4 additions and 4 deletions

View File

@ -38,20 +38,20 @@ class Logger:
def __init__(self):
dot_gajim = os.path.dirname(LOGPATH)
if os.path.isfile(dot_gajim):
print dot_gajim, _('is file but it should be a directory')
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):
if os.path.isfile(LOGPATH):
print LOGPATH, _('is file but it should be a directory')
print _('%s is file but it should be a directory') % LOGPATH
print _('Gajim will now exit')
sys.exit()
else: # dot_gajim doesn't exist
if dot_gajim: # is '' on win9x so avoid that
print _('creating'), dot_gajim , _('directory')
print _('creating %s directory') % dot_gajim
os.mkdir(dot_gajim)
if not os.path.isdir(LOGPATH):
print _('creating'), LOGPATH, _('directory')
print _('creating %s directory') % LOGPATH
os.mkdir(LOGPATH)
def write(self, kind, msg, jid, show = None, tim = None):