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

Function _detect_cef_binaries_libraries_dir

tools/common.py:340–351  ·  view source on GitHub ↗

Detect cef binary directory created by automate.py eg. build/cef55_3.2883.1553.g80bd606_win32/ and set CEF_BINARIES_LIBRARIES to it, otherwise it will point to eg. build/cef_win32/ .

()

Source from the content-addressed store, hash-verified

338
339
340def _detect_cef_binaries_libraries_dir():
341 """Detect cef binary directory created by automate.py
342 eg. build/cef55_3.2883.1553.g80bd606_win32/
343 and set CEF_BINARIES_LIBRARIES to it, otherwise it will
344 point to eg. build/cef_win32/ ."""
345 global CEF_BINARIES_LIBRARIES
346 if not os.path.exists(CEF_BINARIES_LIBRARIES):
347 dirs = glob.glob(os.path.join(
348 BUILD_DIR,
349 get_cef_binaries_libraries_basename(OS_POSTFIX2)))
350 if len(dirs) == 1:
351 CEF_BINARIES_LIBRARIES = os.path.normpath(dirs[0])
352
353
354def get_cef_binaries_libraries_basename(postfix2):

Callers 1

common.pyFile · 0.85

Tested by

no test coverage detected