diff --git a/cx_Freeze/freezer.py b/cx_Freeze/freezer.py index bbd5f3541..407c7e36a 100644 --- a/cx_Freeze/freezer.py +++ b/cx_Freeze/freezer.py @@ -250,11 +250,12 @@ def _GetDependentFiles(self, path): """Return the file's dependencies using platform-specific tools (the imagehlp library on Windows, otool on Mac OS X and ldd on Linux); limit this list by the exclusion lists as needed""" + path = os.path.normcase(path) dirname = os.path.dirname(path) dependentFiles = self.dependentFiles.get(path) if dependentFiles is None: if sys.platform == "win32": - if path.endswith(('.exe', '.dll')): + if path.endswith(('.exe', '.dll', '.pyd')): origPath = os.environ["PATH"] os.environ["PATH"] = origPath + os.pathsep + \ os.pathsep.join(sys.path)