diff options
author | tmolitor <thilo@eightysoft.de> | 2016-09-05 00:56:22 +0300 |
---|---|---|
committer | tmolitor <thilo@eightysoft.de> | 2016-09-05 00:56:22 +0300 |
commit | 5364afc3df80bb42c870299cb162178d5d72c45e (patch) | |
tree | e3b2ebd441d371a7fabee5799608ab8d5b5fbb53 | |
parent | 92a05deb37f47256a1db6466d7d61330eb0941b5 (diff) |
Make plugin_installer more robust to filepath layout changes
-rw-r--r-- | plugin_installer/manifest.ini | 2 | ||||
-rw-r--r-- | plugin_installer/plugin_installer.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugin_installer/manifest.ini b/plugin_installer/manifest.ini index 6056cc0..4dbd115 100644 --- a/plugin_installer/manifest.ini +++ b/plugin_installer/manifest.ini @@ -1,7 +1,7 @@ [info] name: Plugin Installer short_name: plugin_installer -version: 0.13.1 +version: 0.14 description: Install and upgrade plugins from ftp authors: Denis Fomin <fominde@gmail.com> Yann Leboulanger <asterix@lagaule.org> diff --git a/plugin_installer/plugin_installer.py b/plugin_installer/plugin_installer.py index ee63627..96d187d 100644 --- a/plugin_installer/plugin_installer.py +++ b/plugin_installer/plugin_installer.py @@ -602,7 +602,7 @@ class Ftp(threading.Thread): # downloading zip file GLib.idle_add(self.progressbar.set_text, _('Downloading "%s"') % filename) - full_filename = os.path.join(local_dir, 'plugins', filename) + full_filename = os.path.join(user_dir, filename) self.buffer_ = io.BytesIO() try: 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')) + zip_file.extractall(os.path.join(user_dir)) self.ftp.quit() GLib.idle_add(self.window.emit, 'plugin_downloaded', self.remote_dirs) |