parameters: (target_dir, source_dir, dll_pattern, suffix)
docstring: Copy both the msvcp and vccorlib runtime DLLs, only if the target doesn't
    exist, but the target directory does exist.
docstring_summary: Copy both the msvcp and vccorlib runtime DLLs, only if the target doesn't
    exist, but the target directory does exist.
docstring_tokens: Copy both the msvcp and vccorlib runtime DLLs only if the target doesn t exist but the target directory does exist .
function: def _CopyRuntime2015(target_dir, source_dir, dll_pattern, suffix):
    """Copy both the msvcp and vccorlib runtime DLLs, only if the target doesn't
    exist, but the target directory does exist."""
    for file_part in ('msvcp', 'vccorlib', 'vcruntime'):
      dll = dll_pattern % file_part
      target = os.path.join(target_dir, dll)
      source = os.path.join(source_dir, dll)
      _CopyRuntimeImpl(target, source)
    ucrt_src_dir = os.path.join(source_dir, 'api-ms-win-*.dll')
    print 'Copying %s to %s...' % (ucrt_src_dir, target_dir)
    for ucrt_src_file in glob.glob(ucrt_src_dir):
      file_part = os.path.basename(ucrt_src_file)
      ucrt_dst_file = os.path.join(target_dir, file_part)
      _CopyRuntimeImpl(ucrt_dst_file, ucrt_src_file, False)
    _CopyRuntimeImpl(os.path.join(target_dir, 'ucrtbase' + suffix),
                      os.path.join(source_dir, 'ucrtbase' + suffix))
function_tokens: def _CopyRuntime2015 ( target_dir , source_dir , dll_pattern , suffix ) : for file_part in ( 'msvcp' , 'vccorlib' , 'vcruntime' ) : dll = dll_pattern % file_part target = os . path . join ( target_dir , dll ) source = os . path . join ( source_dir , dll ) _CopyRuntimeImpl ( target , source ) ucrt_src_dir = os . path . join ( source_dir , 'api-ms-win-*.dll' ) print 'Copying %s to %s...' % ( ucrt_src_dir , target_dir ) for ucrt_src_file in glob . glob ( ucrt_src_dir ) : file_part = os . path . basename ( ucrt_src_file ) ucrt_dst_file = os . path . join ( target_dir , file_part ) _CopyRuntimeImpl ( ucrt_dst_file , ucrt_src_file , False ) _CopyRuntimeImpl ( os . path . join ( target_dir , 'ucrtbase' + suffix ) , os . path . join ( source_dir , 'ucrtbase' + suffix ) )