From 819d4d0d7d4be1d201f04f6373cf1e220e25aa37 Mon Sep 17 00:00:00 2001 From: marcelotduarte Date: Fri, 13 Sep 2019 22:04:41 -0300 Subject: [PATCH 1/2] fix a regression introduced in #492 --- cx_Freeze/freezer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cx_Freeze/freezer.py b/cx_Freeze/freezer.py index bbd5f3541..eafffef6c 100644 --- a/cx_Freeze/freezer.py +++ b/cx_Freeze/freezer.py @@ -254,7 +254,7 @@ def _GetDependentFiles(self, 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) From 42d377203881e1ccc7e07b8f20a109574c6df1c2 Mon Sep 17 00:00:00 2001 From: marcelotduarte Date: Fri, 20 Sep 2019 05:30:23 -0300 Subject: [PATCH 2/2] this is the second part to fix the regression and fix multiple get dependencies when the filename has different case --- cx_Freeze/freezer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cx_Freeze/freezer.py b/cx_Freeze/freezer.py index eafffef6c..407c7e36a 100644 --- a/cx_Freeze/freezer.py +++ b/cx_Freeze/freezer.py @@ -250,6 +250,7 @@ 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: