Fixed buggy config update to 01215

This commit is contained in:
Alexander Cherniuk 2010-03-05 15:54:06 +02:00
parent ff658ee144
commit 43527d23d0
1 changed files with 2 additions and 2 deletions

View File

@ -704,9 +704,9 @@ class OptionsParser:
""" """
Remove hardcoded ../data/sounds from config Remove hardcoded ../data/sounds from config
""" """
dirs = ('../data', gajim.gajimpaths.data_root, gajim.DATA_DIR) dirs = ['../data', gajim.gajimpaths.data_root, gajim.DATA_DIR]
if os.name != 'nt': if os.name != 'nt':
dirs += (os.path.expanduser(u'~/.gajim')) dirs.append(os.path.expanduser(u'~/.gajim')
for evt in gajim.config.get_per('soundevents'): for evt in gajim.config.get_per('soundevents'):
path = gajim.config.get_per('soundevents', evt, 'path') path = gajim.config.get_per('soundevents', evt, 'path')
# absolute and relative passes are necessary # absolute and relative passes are necessary