src/eric7/PluginManager/PluginManager.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
23 from eric7 import Globals, Preferences, Utilities 23 from eric7 import Globals, Preferences, Utilities
24 from eric7.EricGui import EricPixmapCache 24 from eric7.EricGui import EricPixmapCache
25 from eric7.EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired 25 from eric7.EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired
26 from eric7.EricWidgets import EricMessageBox 26 from eric7.EricWidgets import EricMessageBox
27 from eric7.EricWidgets.EricApplication import ericApp 27 from eric7.EricWidgets.EricApplication import ericApp
28 from eric7.EricXML.PluginRepositoryReader import PluginRepositoryReader
28 from eric7.Globals import getConfig 29 from eric7.Globals import getConfig
29 30
30 try: 31 try:
31 from eric7.EricNetwork.EricSslErrorHandler import ( 32 from eric7.EricNetwork.EricSslErrorHandler import (
32 EricSslErrorHandler, 33 EricSslErrorHandler,
1325 if f.open(QIODevice.OpenModeFlag.ReadOnly): 1326 if f.open(QIODevice.OpenModeFlag.ReadOnly):
1326 # save current URL 1327 # save current URL
1327 url = Preferences.getUI("PluginRepositoryUrl7") 1328 url = Preferences.getUI("PluginRepositoryUrl7")
1328 1329
1329 # read the repository file 1330 # read the repository file
1330 from eric7.EricXML.PluginRepositoryReader import PluginRepositoryReader
1331
1332 reader = PluginRepositoryReader(f, self.checkPluginEntry) 1331 reader = PluginRepositoryReader(f, self.checkPluginEntry)
1333 reader.readXML() 1332 reader.readXML()
1334 if url != Preferences.getUI("PluginRepositoryUrl7"): 1333 if url != Preferences.getUI("PluginRepositoryUrl7"):
1335 # redo if it is a redirect 1334 # redo if it is a redirect
1336 self.checkPluginUpdatesAvailable() 1335 self.checkPluginUpdatesAvailable()
1451 """ 1450 """
1452 try: 1451 try:
1453 pip = ericApp().getObject("Pip") 1452 pip = ericApp().getObject("Pip")
1454 except KeyError: 1453 except KeyError:
1455 # Installation is performed via the plug-in installation script. 1454 # Installation is performed via the plug-in installation script.
1456 from eric7.PipInterface.Pip import Pip 1455 from eric7.PipInterface.Pip import Pip # __IGNORE_WARNING_I101__
1457 1456
1458 pip = Pip(self) 1457 pip = Pip(self)
1459 pip.installPackages(packages, interpreter=Globals.getPythonExecutable()) 1458 pip.installPackages(packages, interpreter=Globals.getPythonExecutable())
1460 1459
1461 1460

eric ide

mercurial