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. |