os.path.mkdir crashes under win9x if the folder already exists
This commit is contained in:
parent
111d7049c6
commit
667eb618b7
|
@ -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'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue