def filter(self, record) :
return not hiddenEvents.has_key(record.eventType)
-logsdir = os.path.join(os.path.expandvars('$HOME'), 'minwii_logs')
+logsdir = os.path.join(os.path.expanduser('~'), 'minwii_logs')
if not os.path.exists(logsdir) :
os.mkdir(logsdir)