10925:22c3928a1ab5 | 10926:9ef616cd220d |
---|---|
9 | 9 |
10 import os | 10 import os |
11 | 11 |
12 from PyQt6.QtCore import QObject, QXmlStreamReader, pyqtSignal | 12 from PyQt6.QtCore import QObject, QXmlStreamReader, pyqtSignal |
13 | 13 |
14 from eric7 import Globals | 14 from eric7 import EricUtilities |
15 from eric7.EricWidgets import EricMessageBox | 15 from eric7.EricWidgets import EricMessageBox |
16 from eric7.Utilities.AutoSaver import AutoSaver | 16 from eric7.Utilities.AutoSaver import AutoSaver |
17 | 17 |
18 | 18 |
19 class UserAgentManager(QObject): | 19 class UserAgentManager(QObject): |
50 | 50 |
51 @return name of the user agents file | 51 @return name of the user agents file |
52 @rtype str | 52 @rtype str |
53 """ | 53 """ |
54 return os.path.join( | 54 return os.path.join( |
55 Globals.getConfigDir(), "web_browser", "userAgentSettings.xml" | 55 EricUtilities.getConfigDir(), "web_browser", "userAgentSettings.xml" |
56 ) | 56 ) |
57 | 57 |
58 def save(self): | 58 def save(self): |
59 """ | 59 """ |
60 Public slot to save the user agent entries to disk. | 60 Public slot to save the user agent entries to disk. |