src/eric7/WebBrowser/SpeedDial/SpeedDial.py

branch
eric7
changeset 10926
9ef616cd220d
parent 10439
21c28b0f9e41
child 10928
46651e194fbe
equal deleted inserted replaced
10925:22c3928a1ab5 10926:9ef616cd220d
17 pyqtSignal, 17 pyqtSignal,
18 pyqtSlot, 18 pyqtSlot,
19 qWarning, 19 qWarning,
20 ) 20 )
21 21
22 from eric7 import Globals, Utilities 22 from eric7 import EricUtilities, Utilities
23 from eric7.EricWidgets import EricMessageBox 23 from eric7.EricWidgets import EricMessageBox
24 from eric7.Utilities.AutoSaver import AutoSaver 24 from eric7.Utilities.AutoSaver import AutoSaver
25 25
26 from ..Tools.WebBrowserTools import pixmapFileToDataUrl 26 from ..Tools.WebBrowserTools import pixmapFileToDataUrl
27 from .Page import Page 27 from .Page import Page
156 Public method to get the file name of the user agents file. 156 Public method to get the file name of the user agents file.
157 157
158 @return name of the user agents file 158 @return name of the user agents file
159 @rtype str 159 @rtype str
160 """ 160 """
161 return os.path.join(Globals.getConfigDir(), "web_browser", "speedDial.xml") 161 return os.path.join(
162 EricUtilities.getConfigDir(), "web_browser", "speedDial.xml"
163 )
162 164
163 def __initialize(self): 165 def __initialize(self):
164 """ 166 """
165 Private method to initialize the speed dial. 167 Private method to initialize the speed dial.
166 """ 168 """
167 self.__thumbnailsDirectory = os.path.join( 169 self.__thumbnailsDirectory = os.path.join(
168 Globals.getConfigDir(), "web_browser", "thumbnails" 170 EricUtilities.getConfigDir(), "web_browser", "thumbnails"
169 ) 171 )
170 # Create directory if it does not exist yet 172 # Create directory if it does not exist yet
171 if not os.path.exists(self.__thumbnailsDirectory): 173 if not os.path.exists(self.__thumbnailsDirectory):
172 os.makedirs(self.__thumbnailsDirectory) 174 os.makedirs(self.__thumbnailsDirectory)
173 175

eric ide

mercurial