gh-94205: Ensures all required DLLs are copied on Windows for underpt… · python/cpython@8d8ce13

GitHub

Original file line numberDiff line numberDiff line change@@ -572,6 +572,8 @@ def _create_underpth_exe(self, lines, exe_pth=True):

572572dll_file=os.path.join(temp_dir, os.path.split(dll_src_file)[1])

573573shutil.copy(sys.executable, exe_file)

574574shutil.copy(dll_src_file, dll_file)

575+forfninglob.glob(os.path.join(os.path.split(dll_src_file)[0], "vcruntime*.dll")):

576+shutil.copy(fn, os.path.join(temp_dir, os.path.split(fn)[1]))

575577ifexe_pth:

576578_pth_file=os.path.splitext(exe_file)[0] +'._pth'

577579else: