Anthony Tuininga  committed 721f8b6

Added support for including a necessary DLL under Windows for the phonon
backend in PyQt4. Thanks to F. Pinkse for the patch.

  • Participants
  • Parent commits 86a4c6a

Comments (0)

Files changed (1)

File cx_Freeze/

     module.code = None
+def load_PyQt4_phonon(finder, module):
+    """In Windows, phonon4.dll requires an additional dll phonon_ds94.dll to
+       be present in the build directory inside a folder phonon_backend."""
+    if sys.platform == "win32":
+        dir = os.path.join(module.parent.path[0], "plugins", "phonon_backend")
+        finder.IncludeFiles(dir, "phonon_backend")
 def load_PyQt4_QtCore(finder, module):
     """the PyQt4.QtCore module implicitly imports the sip module and,
        depending on configuration, the PyQt4._qt module."""