Commits

Anthony Tuininga  committed c31f25f

Ensure that pywintypes is loaded for the win32file module as well.

  • Participants
  • Parent commits 3b0f0ee

Comments (0)

Files changed (1)

File cx_Freeze/hooks.py

     module.path.append(os.path.join(baseDir, "win32comext"))
 
 
+def load_win32file(finder, module):
+    """the win32api module implicitly loads the pywintypes module; make sure
+       this happens."""
+    finder.IncludeModule("pywintypes")
+
+
 def load_xml(finder, module):
     """the builtin xml package attempts to load the _xmlplus module to see if
        that module should take its role instead; ignore the failure to find