(postfix2, ignore_error=False)
| 360 | |
| 361 | |
| 362 | def get_cefpython_binary_basename(postfix2, ignore_error=False): |
| 363 | cef_version = get_cefpython_version() |
| 364 | cmdline_version = get_version_from_command_line_args( |
| 365 | __file__, ignore_error=ignore_error) |
| 366 | if not cmdline_version: |
| 367 | if not ignore_error: |
| 368 | raise Exception("Version arg not found in command line args") |
| 369 | return |
| 370 | # If cef_version is 56 then expect version from command line to |
| 371 | # start with "56.". |
| 372 | cef_major = cef_version["CHROME_VERSION_MAJOR"] |
| 373 | if not cmdline_version.startswith("{major}.".format(major=cef_major)): |
| 374 | if not ignore_error: |
| 375 | raise Exception("cmd line arg major version != Chrome version") |
| 376 | return |
| 377 | dirname = "cefpython_binary_{version}_{os}".format( |
| 378 | version=cmdline_version, |
| 379 | os=postfix2) |
| 380 | return dirname |
| 381 | |
| 382 | |
| 383 | def get_setup_installer_basename(version, postfix2): |
no test coverage detected