Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
bc9a72e6
Commit
bc9a72e6
authored
Apr 25, 2018
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[location] Use configpaths api for getting path
parent
e8e12653
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
set_location/set_location.py
set_location/set_location.py
+3
-1
No files found.
set_location/set_location.py
View file @
bc9a72e6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment