10925:22c3928a1ab5 | 10926:9ef616cd220d |
---|---|
12 import os | 12 import os |
13 | 13 |
14 from PyQt6.QtCore import QObject, QUrl | 14 from PyQt6.QtCore import QObject, QUrl |
15 from PyQt6.QtWebEngineCore import QWebEnginePage | 15 from PyQt6.QtWebEngineCore import QWebEnginePage |
16 | 16 |
17 from eric7 import Globals | 17 from eric7 import EricUtilities |
18 | 18 |
19 | 19 |
20 class ProtocolHandlerManager(QObject): | 20 class ProtocolHandlerManager(QObject): |
21 """ | 21 """ |
22 Class implementing the protocol handler manager. | 22 Class implementing the protocol handler manager. |
91 | 91 |
92 @return name of the protocol handlers file | 92 @return name of the protocol handlers file |
93 @rtype str | 93 @rtype str |
94 """ | 94 """ |
95 return os.path.join( | 95 return os.path.join( |
96 Globals.getConfigDir(), "web_browser", "protocol_handlers.json" | 96 EricUtilities.getConfigDir(), "web_browser", "protocol_handlers.json" |
97 ) | 97 ) |
98 | 98 |
99 def __load(self): | 99 def __load(self): |
100 """ | 100 """ |
101 Private method to load the registered protocol handlers. | 101 Private method to load the registered protocol handlers. |