os.path.mkdir crashes under win9x if the folder already exists

This commit is contained in:
Yann Leboulanger 2005-05-23 15:32:35 +00:00
parent 111d7049c6
commit 667eb618b7
1 changed files with 3 additions and 2 deletions

View File

@ -49,8 +49,9 @@ class Logger:
if dot_gajim:
os.mkdir(dot_gajim)
print 'creating', dot_gajim , 'directory'
os.mkdir(LOGPATH)
print 'creating', LOGPATH, 'directory'
if not os.path.isdir(LOGPATH):
os.mkdir(LOGPATH)
print 'creating', LOGPATH, 'directory'
def write(self, kind, msg, jid, show = None, tim = None):
if not tim: