win9x: save in current dir

This commit is contained in:
Nikos Kouremenos 2005-05-20 18:13:38 +00:00
parent ecf50d8c56
commit 98e78c7999
2 changed files with 4 additions and 4 deletions

View File

@ -30,8 +30,8 @@ if os.name == 'nt':
# Documents and Settings\[User Name]\Application Data\Gajim\logs
LOGPATH = os.environ['appdata'] + '/Gajim/logs'
except KeyError:
# win9x, so use ~/Gajim/logs which is WINDOWS\Application Data\Gajim\logs
LOGPATH = os.path.expanduser('~/Gajim/logs')
# win9x, ./logs
LOGPATH = 'logs'
class Logger:
def __init__(self):

View File

@ -71,8 +71,8 @@ if os.name == 'nt':
# Documents and Settings\[User Name]\Application Data\Gajim\logs
config_filename = os.environ['appdata'] + '/Gajim/config'
except KeyError:
# win9x, so use ~/Gajim/logs which is WINDOWS\Application Data\Gajim\logs
config_filename = os.path.expanduser('~/Gajim/config')
# win9x so ./config
config_filename = 'config'
if do_move:
os.renames(old_path, config_filename)