eric5.py

changeset 263
2b328d503567
parent 128
13e96bd0f5a5
child 265
5805c2e1415b
--- a/eric5.py	Sun May 16 19:57:46 2010 +0200
+++ b/eric5.py	Thu May 20 20:11:27 2010 +0200
@@ -176,6 +176,16 @@
     
     app = E5Application(sys.argv)
     
+    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)
+
     # set the searchpath for icons
     Startup.initializeResourceSearchPath()
 

eric ide

mercurial