MCPcopy Create free account
hub / github.com/cztomczak/cefpython / backup_subprocess_executable_issue342

Function backup_subprocess_executable_issue342

tools/build_distrib.py:530–546  ·  view source on GitHub ↗

Use subprocess executable built by Python 3.4 to have the least amount of false-positives by AVs. Windows-only issue.

(python)

Source from the content-addressed store, hash-verified

528
529
530def backup_subprocess_executable_issue342(python):
531 """Use subprocess executable built by Python 3.4 to have the least amount of
532 false-positives by AVs. Windows-only issue."""
533 if not WINDOWS:
534 return
535 if python["version2"] == (2, 7):
536 print("[build_distrib.py] Backup subprocess executable built"
537 " with Python 3.4 (Issue #342)")
538 cefpython_binary_basename = get_cefpython_binary_basename(
539 get_os_postfix2_for_arch(python["arch"]))
540 cefpython_binary = os.path.join(BUILD_DIR, cefpython_binary_basename)
541 assert os.path.isdir(cefpython_binary)
542 src = os.path.join(cefpython_binary, "subprocess.exe")
543 dst = os.path.join(BUILD_CEFPYTHON,
544 "subprocess_py34_{arch}_issue342.exe"
545 .format(arch=python["arch"]))
546 shutil.copy(src, dst)
547
548
549def restore_subprocess_executable_issue342(arch):

Callers 1

build_cefpython_modulesFunction · 0.85

Calls 3

get_os_postfix2_for_archFunction · 0.85
copyMethod · 0.80

Tested by

no test coverage detected