first the print then the action
This commit is contained in:
parent
12f1ea0517
commit
d44955c81b
1 changed files with 4 additions and 4 deletions
|
@ -45,13 +45,13 @@ class Logger:
|
||||||
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'
|
print 'Gajim will now exit'
|
||||||
sys.exit()
|
sys.exit()
|
||||||
else: #create ~/.gajim/logs if it doesn't exist
|
else: # dot_gajim doesn't exist
|
||||||
if dot_gajim:
|
if dot_gajim: # is '' on win9x so avoid that
|
||||||
os.mkdir(dot_gajim)
|
|
||||||
print 'creating', dot_gajim , 'directory'
|
print 'creating', dot_gajim , 'directory'
|
||||||
|
os.mkdir(dot_gajim)
|
||||||
if not os.path.isdir(LOGPATH):
|
if not os.path.isdir(LOGPATH):
|
||||||
os.mkdir(LOGPATH)
|
|
||||||
print 'creating', LOGPATH, 'directory'
|
print 'creating', LOGPATH, 'directory'
|
||||||
|
os.mkdir(LOGPATH)
|
||||||
|
|
||||||
def write(self, kind, msg, jid, show = None, tim = None):
|
def write(self, kind, msg, jid, show = None, tim = None):
|
||||||
if not tim:
|
if not tim:
|
||||||
|
|
Loading…
Add table
Reference in a new issue