--- a/src/eric7/EricNetwork/EricGoogleMail.py Wed Sep 25 14:07:40 2024 +0200 +++ b/src/eric7/EricNetwork/EricGoogleMail.py Wed Sep 25 14:48:57 2024 +0200 @@ -17,7 +17,7 @@ from googleapiclient import discovery, errors from PyQt6.QtCore import QObject, pyqtSignal -from eric7 import Globals +from eric7 import EricUtilities from .EricGoogleMailHelpers import CLIENT_SECRET_FILE, SCOPES, TOKEN_FILE @@ -78,7 +78,9 @@ authorization flow. """ # check for availability of secrets file - if not os.path.exists(os.path.join(Globals.getConfigDir(), CLIENT_SECRET_FILE)): + if not os.path.exists( + os.path.join(EricUtilities.getConfigDir(), CLIENT_SECRET_FILE) + ): self.sendResult.emit( False, self.tr( @@ -99,7 +101,8 @@ credentials = None if not credentials or not credentials.valid: flow = InstalledAppFlow.from_client_secrets_file( - os.path.join(Globals.getConfigDir(), CLIENT_SECRET_FILE), SCOPES + os.path.join(EricUtilities.getConfigDir(), CLIENT_SECRET_FILE), + SCOPES, ) credentials = flow.run_local_server(port=0) # Save the credentials for the next run @@ -192,7 +195,7 @@ " <code>{1}</code> with the name <code>{2}</code>.</li>" "</ol>".format( "https://console.developers.google.com/start/api?id=gmail", - Globals.getConfigDir(), + EricUtilities.getConfigDir(), CLIENT_SECRET_FILE, ) )