Commit 5364afc3 authored by Thilo Molitor's avatar Thilo Molitor
Browse files

Make plugin_installer more robust to filepath layout changes

parent 92a05deb
name: Plugin Installer
short_name: plugin_installer
version: 0.13.1
version: 0.14
description: Install and upgrade plugins from ftp
authors: Denis Fomin <>
Yann Leboulanger <>
......@@ -602,7 +602,7 @@ class Ftp(threading.Thread):
# downloading zip file
_('Downloading "%s"') % filename)
full_filename = os.path.join(local_dir, 'plugins', filename)
full_filename = os.path.join(user_dir, filename)
self.buffer_ = io.BytesIO()
self.ftp.retrbinary('RETR %s' % filename, self.handleDownload)
......@@ -610,7 +610,7 @@ class Ftp(threading.Thread):
print (str(e))
with zipfile.ZipFile(self.buffer_) as zip_file:
zip_file.extractall(os.path.join(local_dir, 'plugins'))
GLib.idle_add(self.window.emit, 'plugin_downloaded', self.remote_dirs)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment