From c9f31ec96666aae049f79bb800fc241f42fb626e Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 26 Feb 2010 18:54:42 +0100 Subject: [PATCH] fix some function call under windows --- src/common/check_paths.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/check_paths.py b/src/common/check_paths.py index ebda5ed8b..46d2c313d 100644 --- a/src/common/check_paths.py +++ b/src/common/check_paths.py @@ -129,7 +129,9 @@ def split_db(): print 'spliting database' if os.name == 'nt': try: - OLD_LOG_DB_FOLDER = os.path.join(fse(os.environ[u'appdata']), u'Gajim') + import configpaths + OLD_LOG_DB_FOLDER = os.path.join(configpaths.fse( + os.environ[u'appdata']), u'Gajim') except KeyError: OLD_LOG_DB_FOLDER = u'.' else: @@ -184,7 +186,8 @@ def check_and_possibly_move_config(): if os.name == 'nt': try: - OLD_LOG_DB_FOLDER = os.path.join(fse(os.environ[u'appdata']), u'Gajim') + OLD_LOG_DB_FOLDER = os.path.join(configpaths.fse( + os.environ[u'appdata']), u'Gajim') except KeyError: OLD_LOG_DB_FOLDER = u'.' else: