12 |
12 |
13 from PyQt6.QtCore import QDir, QFile, QIODevice, QObject, QUrl, QUrlQuery, pyqtSignal |
13 from PyQt6.QtCore import QDir, QFile, QIODevice, QObject, QUrl, QUrlQuery, pyqtSignal |
14 from PyQt6.QtNetwork import QNetworkReply, QNetworkRequest |
14 from PyQt6.QtNetwork import QNetworkReply, QNetworkRequest |
15 from PyQt6.QtWidgets import QInputDialog, QLineEdit |
15 from PyQt6.QtWidgets import QInputDialog, QLineEdit |
16 |
16 |
17 from eric7 import Preferences, Utilities |
17 from eric7 import Globals, Preferences |
18 from eric7.EricWidgets import EricMessageBox |
18 from eric7.EricWidgets import EricMessageBox |
19 from eric7.EricWidgets.EricApplication import ericApp |
19 from eric7.EricWidgets.EricApplication import ericApp |
20 from eric7.Utilities.AutoSaver import AutoSaver |
20 from eric7.Utilities.AutoSaver import AutoSaver |
21 from eric7.WebBrowser.WebBrowserWindow import WebBrowserWindow |
21 from eric7.WebBrowser.WebBrowserWindow import WebBrowserWindow |
22 |
22 |
440 Public method to determine the directory containing the search engine |
440 Public method to determine the directory containing the search engine |
441 descriptions. |
441 descriptions. |
442 |
442 |
443 @return directory name (string) |
443 @return directory name (string) |
444 """ |
444 """ |
445 return os.path.join(Utilities.getConfigDir(), "web_browser", "searchengines") |
445 return os.path.join(Globals.getConfigDir(), "web_browser", "searchengines") |
446 |
446 |
447 def __confirmAddition(self, engine): |
447 def __confirmAddition(self, engine): |
448 """ |
448 """ |
449 Private method to confirm the addition of a new search engine. |
449 Private method to confirm the addition of a new search engine. |
450 |
450 |