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

Function get_cefpython_binary_basename

tools/common.py:362–380  ·  view source on GitHub ↗
(postfix2, ignore_error=False)

Source from the content-addressed store, hash-verified

360
361
362def 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
383def get_setup_installer_basename(version, postfix2):

Calls 2

get_cefpython_versionFunction · 0.85

Tested by

no test coverage detected