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,6 +49,7 @@ class Logger:
if dot_gajim: if dot_gajim:
os.mkdir(dot_gajim) os.mkdir(dot_gajim)
print 'creating', dot_gajim , 'directory' print 'creating', dot_gajim , 'directory'
if not os.path.isdir(LOGPATH):
os.mkdir(LOGPATH) os.mkdir(LOGPATH)
print 'creating', LOGPATH, 'directory' print 'creating', LOGPATH, 'directory'