Toolbox/Startup.py

changeset 2217
e80c74f2a25a
parent 2087
795992a5c561
child 2302
f29e9405c851
equal deleted inserted replaced
2216:3372cf8877c0 2217:e80c74f2a25a
111 """ 111 """
112 Module function to initialize the default mime source factory. 112 Module function to initialize the default mime source factory.
113 """ 113 """
114 import Preferences 114 import Preferences
115 115
116 defaultIconPath = os.path.join(getConfig('ericIconDir'), "default") 116 defaultIconPaths = [
117 os.path.join(getConfig('ericIconDir'), "default"),
118 os.path.join(getConfig('ericIconDir'), "default", "languages"),
119 ]
117 iconPaths = Preferences.getIcons("Path") 120 iconPaths = Preferences.getIcons("Path")
118 for iconPath in iconPaths: 121 for iconPath in iconPaths:
119 if iconPath: 122 if iconPath:
120 UI.PixmapCache.addSearchPath(iconPath) 123 UI.PixmapCache.addSearchPath(iconPath)
121 if not defaultIconPath in iconPaths: 124 for defaultIconPath in defaultIconPaths:
122 UI.PixmapCache.addSearchPath(defaultIconPath) 125 if not defaultIconPath in iconPaths:
126 UI.PixmapCache.addSearchPath(defaultIconPath)
123 127
124 128
125 def setLibraryPaths(): 129 def setLibraryPaths():
126 """ 130 """
127 Module function to set the Qt library paths correctly for windows systems. 131 Module function to set the Qt library paths correctly for windows systems.

eric ide

mercurial