src/eric7/EricNetwork/EricGoogleMailHelpers.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
39 def installGoogleAPIPackages(): 39 def installGoogleAPIPackages():
40 """ 40 """
41 Module function to install the required packages to support Google mail. 41 Module function to install the required packages to support Google mail.
42 """ 42 """
43 with contextlib.suppress(ImportError, KeyError): 43 with contextlib.suppress(ImportError, KeyError):
44 from eric7.EricWidgets.EricApplication import ericApp # noqa: I101 44 from eric7.EricWidgets.EricApplication import ericApp # noqa: I-101
45 from eric7.SystemUtilities import PythonUtilities # noqa: I101 45 from eric7.SystemUtilities import PythonUtilities # noqa: I-101
46 46
47 pip = ericApp().getObject("Pip") 47 pip = ericApp().getObject("Pip")
48 pip.installPackages( 48 pip.installPackages(
49 RequiredPackages, interpreter=PythonUtilities.getPythonExecutable() 49 RequiredPackages, interpreter=PythonUtilities.getPythonExecutable()
50 ) 50 )
51 51
52 52
53 # 53 #
54 # eflag: noqa = U200 54 # eflag: noqa = U-200

eric ide

mercurial