Skip to content

Commit

Permalink
[Plugin installer] fix #8876
Browse files Browse the repository at this point in the history
  • Loading branch information
borysiasty committed Oct 17, 2013
1 parent aeef5a8 commit b114dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyplugin_installer/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def installPlugin(self, key, quiet=False):
dlg.exec_()
if dlg.result():
# revert installation
pluginDir = qgis.utils.home_python_pluginpath + "/" + plugin["id"]
pluginDir = qgis.utils.home_plugin_path + "/" + plugin["id"]
removeDir(pluginDir)
if QDir(pluginDir).exists():
infoString = (self.tr("Plugin uninstall failed"), result)
Expand Down Expand Up @@ -380,7 +380,7 @@ def uninstallPlugin(self, key, quiet=False):
unloadPlugin(key)
except:
pass
pluginDir = qgis.utils.home_python_pluginpath + "/" + plugin["id"]
pluginDir = qgis.utils.home_plugin_path + "/" + plugin["id"]
result = removeDir(pluginDir)
if result:
QMessageBox.warning(iface.mainWindow(), self.tr("Plugin uninstall failed"), result)
Expand Down

0 comments on commit b114dce

Please sign in to comment.