Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Robin Müller
gajim-plugins
Commits
5d28985c
Commit
5d28985c
authored
Apr 25, 2018
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[plugin_installer] Use configpaths api for getting path
parent
ef92e458
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
plugin_installer/plugin_installer.py
plugin_installer/plugin_installer.py
+4
-3
No files found.
plugin_installer/plugin_installer.py
View file @
5d28985c
...
...
@@ -49,6 +49,7 @@ try:
from
gtkgui_helpers
import
get_action
except
ImportError
:
from
gajim.common
import
app
from
gajim.common
import
configpaths
from
gajim.plugins
import
GajimPlugin
from
gajim.plugins.gui
import
GajimPluginConfigDialog
from
gajim.htmltextview
import
HtmlTextView
...
...
@@ -95,7 +96,7 @@ def get_local_version(plugin_manifest):
if
not
active
:
return
manifest_path
=
os
.
path
.
join
(
app
.
PLUGINS_DIRS
[
1
]
,
short_name
,
'manifest.ini'
)
configpaths
.
get
(
'PLUGINS_USER'
)
,
short_name
,
'manifest.ini'
)
if
not
os
.
path
.
exists
(
manifest_path
):
return
conf
=
configparser
.
ConfigParser
()
...
...
@@ -294,7 +295,7 @@ class PluginInstaller(GajimPlugin):
for
_dir
in
plugin_dirs
:
is_active
=
False
plugins
=
None
plugin_dir
=
os
.
path
.
join
(
app
.
PLUGINS_DIRS
[
1
]
,
_dir
)
plugin_dir
=
os
.
path
.
join
(
configpaths
.
get
(
'PLUGINS_USER'
)
,
_dir
)
plugin
=
app
.
plugin_manager
.
get_plugin_by_path
(
plugin_dir
)
if
plugin
:
if
plugin
.
active
:
...
...
@@ -571,7 +572,7 @@ class DownloadAsync(threading.Thread):
for
remote_dir
in
self
.
remote_dirs
:
filename
=
remote_dir
+
'.zip'
log
.
info
(
'Download:
%
s'
,
filename
)
base_dir
,
user_dir
=
app
.
PLUGINS_DIRS
user_dir
=
configpaths
.
get
(
'PLUGINS_USER'
)
if
not
os
.
path
.
isdir
(
user_dir
):
os
.
mkdir
(
user_dir
)
local_dir
=
os
.
path
.
join
(
user_dir
,
remote_dir
)
...
...
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