src/eric7/EricNetwork/EricGoogleMailHelpers.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9427
905e7af29101
child 9653
e67609152c5e
--- a/src/eric7/EricNetwork/EricGoogleMailHelpers.py	Sun Dec 18 14:19:10 2022 +0100
+++ b/src/eric7/EricNetwork/EricGoogleMailHelpers.py	Sun Dec 18 19:33:46 2022 +0100
@@ -11,6 +11,7 @@
 
 from eric7 import Globals
 from eric7.EricWidgets.EricApplication import ericApp
+from eric7.SystemUtilities import PythonUtilities
 
 SCOPES = ["https://www.googleapis.com/auth/gmail.send"]
 CLIENT_SECRET_FILE = "eric_client_secret.json"  # secok
@@ -39,4 +40,6 @@
     Module function to install the required packages to support Google mail.
     """
     pip = ericApp().getObject("Pip")
-    pip.installPackages(RequiredPackages, interpreter=Globals.getPythonExecutable())
+    pip.installPackages(
+        RequiredPackages, interpreter=PythonUtilities.getPythonExecutable()
+    )

eric ide

mercurial