From bc9a72e6f8d53fe0660c7a01e65f08074e858d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 25 Apr 2018 19:39:50 +0200 Subject: [PATCH] [location] Use configpaths api for getting path --- set_location/set_location.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/set_location/set_location.py b/set_location/set_location.py index e00e7cf..50d3f33 100644 --- a/set_location/set_location.py +++ b/set_location/set_location.py @@ -15,6 +15,7 @@ from gajim.plugins.helpers import log_calls from gajim.common import app from gajim.common import ged from gajim.common import helpers +from gajim.common import configpaths from gajim import gtkgui_helpers from gajim.dialogs import InputDialog, WarningDialog @@ -281,7 +282,8 @@ class SetLocationPluginConfigDialog(GajimPluginConfigDialog): if jid: # we want an avatar puny_jid = helpers.sanitize_filename(jid) - path_to_file = os.path.join(app.AVATAR_PATH, puny_jid) + suffix + path_to_file = os.path.join( + configpaths.get('AVATAR'), puny_jid) + suffix path_to_local_file = path_to_file + '_local' for extension in ('.png', '.jpeg'): path_to_local_file_full = path_to_local_file + extension -- GitLab