Detect cefpython binary directory where cefpython modules will be put. Eg. build/cefpython_56.0_win32/.
()
| 387 | |
| 388 | |
| 389 | def _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 | |
| 406 | def _detect_distrib_dir(): |
no test coverage detected