diff --git a/set_location/set_location.py b/set_location/set_location.py index e00e7cf2df976c49157cd3df894dfe7cd5a6ee45..50d3f3300899a79bccfa588e2ca185f61e62251a 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