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

Function _detect_cefpython_binary_dir

tools/common.py:389–403  ·  view source on GitHub ↗

Detect cefpython binary directory where cefpython modules will be put. Eg. build/cefpython_56.0_win32/.

()

Source from the content-addressed store, hash-verified

387
388
389def _detect_cefpython_binary_dir():
390 """Detect cefpython binary directory where cefpython modules
391 will be put. Eg. build/cefpython_56.0_win32/."""
392 # Check cef version from header file and check cefpython version
393 # that was passed as command line argument to either build.py
394 # or make-installer.py. The CEFPYTHON_BINARY constant should
395 # only be used in those two scripts, so version number in sys.argv
396 # is expected. If not found then keep the default
397 # "CEFPYTHON_BINARY_NOTSET" value intact.
398 dirname = get_cefpython_binary_basename(OS_POSTFIX2, ignore_error=True)
399 if not dirname:
400 return
401 binary_dir = os.path.join(BUILD_DIR, dirname)
402 global CEFPYTHON_BINARY
403 CEFPYTHON_BINARY = binary_dir
404
405
406def _detect_distrib_dir():

Callers 1

common.pyFile · 0.85

Calls 1

Tested by

no test coverage detected