1. Anthony Tuininga
  2. cx_Freeze

Commits

Anthony Tuininga  committed e32ef42

Ensure that the PyQt4._qt module is included when PyQt is built that way.

  • Participants
  • Parent commits 8d7fd61
  • Branches default

Comments (0)

Files changed (1)

File cx_Freeze/hooks.py

View file
  • Ignore whitespace
 
 
 def load_PyQt4_QtCore(finder, module):
-    """the PyQt4.QtCore module implicitly imports the sip module."""
+    """the PyQt4.QtCore module implicitly imports the sip module and,
+       depending on configuration, the PyQt4._qt module."""
     finder.IncludeModule("sip")
+    try:
+        finder.IncludeModule("PyQt4._qt")
+    except ImportError:
+        pass
 
 
 def load_PyQt4_Qt(finder, module):