win9x: save in current dir
This commit is contained in:
parent
ecf50d8c56
commit
98e78c7999
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue