os.path. join in other places too

This commit is contained in:
Nikos Kouremenos 2005-11-22 11:39:32 +00:00
parent 38061d8993
commit 150cbce4e2
2 changed files with 3 additions and 2 deletions

View File

@ -46,8 +46,8 @@ if os.name == 'nt':
DATA_DIR = 'data'
try:
# Documents and Settings\[User Name]\Application Data\Gajim\logs
LOGPATH = os.environ['appdata'] + '/Gajim/Logs'
VCARDPATH = os.environ['appdata'] + '/Gajim/Vcards'
LOGPATH = os.path.join(os.environ['appdata'], 'Gajim', 'Logs')
VCARDPATH = os.path.join(os.environ['appdata'], 'Gajim', 'Vcards')
except KeyError:
# win9x, ./logs
LOGPATH = 'Logs'

View File

@ -171,4 +171,5 @@ class OptionsParser:
gajim.config.add_per('emoticons', emot)
gajim.config.set_per('emoticons', emot, 'path',
gajim.config.emoticons_default[emot])
gajim.config.set('version', '0.9')