X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/acd9ed455dd78c8248b105d80361a5bf07efa094..cf0a97e6fca3155000772d961bba89c215e1b457:/src/app/log.py diff --git a/src/app/log.py b/src/app/log.py index 74500ec..e3a2182 100755 --- a/src/app/log.py +++ b/src/app/log.py @@ -13,6 +13,7 @@ import pygame import logging import os import datetime +LOG_FORMAT_VERSION='1.0-alpha' hiddenEvents = {pygame.MOUSEMOTION:True, pygame.MOUSEBUTTONDOWN:True, @@ -42,7 +43,7 @@ class EventFilter : 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)