Utilities/Startup.py

changeset 263
2b328d503567
parent 107
918a6be6f051
child 265
5805c2e1415b
--- a/Utilities/Startup.py	Sun May 16 19:57:46 2010 +0200
+++ b/Utilities/Startup.py	Thu May 20 20:11:27 2010 +0200
@@ -201,6 +201,16 @@
     handleArgs(argv, appinfo)
     app = E5Application(argv)
     app.setQuitOnLastWindowClosed(quitOnLastWindowClosed)
+    
+    if Utilities.isWindowsPlatform():
+        libPath = os.path.join(Utilities.getPythonModulesDirectory(), 
+                               "PyQt", "plugins")
+        if os.path.exists(libPath):
+            libPath = Utilities.fromNativeSeparators(libPath)
+            libraryPaths = QApplication.libraryPaths()
+            if libPath not in libraryPaths:
+                libraryPaths.insert(0, libPath)
+                QApplication.setLibraryPaths(libraryPaths)
 
     initializeResourceSearchPath()
     QApplication.setWindowIcon(UI.PixmapCache.getIcon("eric.png"))

eric ide

mercurial