diff options
author | Philipp Hörist <philipp@hoerist.com> | 2018-04-25 20:39:50 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2018-04-25 20:39:50 +0300 |
commit | bc9a72e6f8d53fe0660c7a01e65f08074e858d5c (patch) | |
tree | 28dd254db92c1ab880ca86405daeda3c9db53cf8 /set_location/set_location.py | |
parent | e8e126538afe7167372bea547f436488c9a85bef (diff) |
[location] Use configpaths api for getting path
Diffstat (limited to 'set_location/set_location.py')
-rw-r--r-- | set_location/set_location.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |