Skip to content
Snippets Groups Projects
Commit 98e78c79 authored by nkour's avatar nkour
Browse files

win9x: save in current dir

parent ecf50d8c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment