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

Function restore_subprocess_executable_issue342

tools/build_distrib.py:549–565  ·  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.

(arch)

Source from the content-addressed store, hash-verified

547
548
549def restore_subprocess_executable_issue342(arch):
550 """Use subprocess executable built by Python 3.4 to have the least amount of
551 false-positives by AVs. Windows-only issue."""
552 if not WINDOWS:
553 return
554 print("[build_distrib.py] Restore subprocess executable built"
555 " with Python 3.4 (Issue #342)")
556 cefpython_binary_basename = get_cefpython_binary_basename(
557 get_os_postfix2_for_arch(arch))
558 cefpython_binary = os.path.join(BUILD_DIR, cefpython_binary_basename)
559 assert os.path.isdir(cefpython_binary)
560 src = os.path.join(BUILD_CEFPYTHON,
561 "subprocess_py34_{arch}_issue342.exe"
562 .format(arch=arch))
563 assert os.path.isfile(src)
564 dst = os.path.join(cefpython_binary, "subprocess.exe")
565 shutil.copy(src, dst)
566
567
568def make_packages(python, arch, all_pythons):

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