43 QTreeWidgetItem, |
43 QTreeWidgetItem, |
44 QVBoxLayout, |
44 QVBoxLayout, |
45 QWidget, |
45 QWidget, |
46 ) |
46 ) |
47 |
47 |
48 from eric7 import EricUtilities, Globals, Preferences |
48 from eric7 import EricUtilities, Preferences |
49 from eric7.EricGui import EricPixmapCache |
49 from eric7.EricGui import EricPixmapCache |
50 from eric7.EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired |
50 from eric7.EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired |
51 from eric7.EricWidgets import EricMessageBox |
51 from eric7.EricWidgets import EricMessageBox |
52 from eric7.EricWidgets.EricApplication import ericApp |
52 from eric7.EricWidgets.EricApplication import ericApp |
53 from eric7.EricWidgets.EricMainWindow import EricMainWindow |
53 from eric7.EricWidgets.EricMainWindow import EricMainWindow |
225 self.__pluginContextMenu.addAction( |
225 self.__pluginContextMenu.addAction( |
226 self.tr("Cleanup Downloads"), self.__cleanupDownloads |
226 self.tr("Cleanup Downloads"), self.__cleanupDownloads |
227 ) |
227 ) |
228 |
228 |
229 self.pluginRepositoryFile = os.path.join( |
229 self.pluginRepositoryFile = os.path.join( |
230 Globals.getConfigDir(), "PluginRepository" |
230 EricUtilities.getConfigDir(), "PluginRepository" |
231 ) |
231 ) |
232 |
232 |
233 self.__pluginManager.pluginRepositoryFileDownloaded.connect(self.__populateList) |
233 self.__pluginManager.pluginRepositoryFileDownloaded.connect(self.__populateList) |
234 |
234 |
235 # attributes for the network objects |
235 # attributes for the network objects |
1239 """ not be deleted.</p><p>Reason: {1}</p>""", |
1239 """ not be deleted.</p><p>Reason: {1}</p>""", |
1240 ).format(removeFile, str(err)), |
1240 ).format(removeFile, str(err)), |
1241 ) |
1241 ) |
1242 |
1242 |
1243 # step 3: delete entries of obsolete plug-ins |
1243 # step 3: delete entries of obsolete plug-ins |
1244 pluginRepositoryFile = os.path.join(Globals.getConfigDir(), "PluginRepository") |
1244 pluginRepositoryFile = os.path.join( |
|
1245 EricUtilities.getConfigDir(), "PluginRepository" |
|
1246 ) |
1245 if os.path.exists(pluginRepositoryFile): |
1247 if os.path.exists(pluginRepositoryFile): |
1246 f = QFile(pluginRepositoryFile) |
1248 f = QFile(pluginRepositoryFile) |
1247 if f.open(QIODevice.OpenModeFlag.ReadOnly): |
1249 if f.open(QIODevice.OpenModeFlag.ReadOnly): |
1248 reader = PluginRepositoryReader(f, registerPlugin) |
1250 reader = PluginRepositoryReader(f, registerPlugin) |
1249 reader.readXML() |
1251 reader.readXML() |