1 --- Python-3.9.14-ref/Lib/ctypes/__init__.py 2022-09-06 19:26:16.000000000 +0200
2 +++ Python-3.9.14-new/Lib/ctypes/__init__.py 2024-04-03 17:34:16.000000000 +0200
4 if '/' in name or '\\' in name:
5 self._name = nt._getfullpathname(self._name)
6 mode |= nt._LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR
8 + # PATH is how DLL lookup has always worked in the past
9 + # in Python on Windows. IMHO both the above mode flags
10 + # are not wanted and cause many serious regressions within
11 + # the conda ecosystem on Windows. We should however
12 + # propagate any PATH changes that have happened to Python
13 + # library and that is not yet implemented.
14 + LOAD_WITH_ALTERED_SEARCH_PATH = 0x00000008
15 + mode = LOAD_WITH_ALTERED_SEARCH_PATH
16 class _FuncPtr(_CFuncPtr):
18 _restype_ = self._func_restype_