[juracy] fix for windows svn users

This commit is contained in:
Nikos Kouremenos 2005-11-22 14:46:37 +00:00
parent 203fd82b34
commit 68af3d51de
1 changed files with 4 additions and 1 deletions

View File

@ -37,10 +37,13 @@ h.setFormatter(f)
log = logging.getLogger('Gajim')
log.addHandler(h)
logger = common.logger.Logger()
logger = common.logger.Logger() # init the logger
if os.name == 'nt':
if '.svn' not in os.listdir('.'): # we are normal users (not svn users)
DATA_DIR = 'data'
else:
DATA_DIR = os.path.join('..', 'data')
try:
# Documents and Settings\[User Name]\Application Data\Gajim\logs
LOGPATH = os.path.join(os.environ['appdata'], 'Gajim', 'Logs') # deprecated