parameters: ()
return_statement: return ''
docstring: Locate the 'dump_syms' binary from Breakpad.
  
    We try to locate the package in the Impala toolchain folder.
    TODO: Lookup the binary in the system path. Not urgent, since the user can specify the
    path as a command line switch.
docstring_summary: Locate the 'dump_syms' binary from Breakpad.
docstring_tokens: Locate the dump_syms binary from Breakpad .
function: def find_dump_syms_binary():
    """Locate the 'dump_syms' binary from Breakpad.
  
    We try to locate the package in the Impala toolchain folder.
    TODO: Lookup the binary in the system path. Not urgent, since the user can specify the
    path as a command line switch.
    """
    toolchain_packages_home = os.environ.get('IMPALA_TOOLCHAIN_PACKAGES_HOME')
    if toolchain_packages_home:
      if not os.path.isdir(toolchain_packages_home):
        die('Could not find toolchain packages directory')
      breakpad_version = os.environ.get('IMPALA_BREAKPAD_VERSION')
      if not breakpad_version:
        die('Could not determine breakpad version from toolchain')
      breakpad_dir = 'breakpad-%s' % breakpad_version
      dump_syms = os.path.join(toolchain_packages_home, breakpad_dir, 'bin', 'dump_syms')
      if not os.path.isfile(dump_syms):
        die('Could not find dump_syms executable at %s' % dump_syms)
      return dump_syms
    return ''
function_tokens: def find_dump_syms_binary ( ) : toolchain_packages_home = os . environ . get ( 'IMPALA_TOOLCHAIN_PACKAGES_HOME' ) if toolchain_packages_home : if not os . path . isdir ( toolchain_packages_home ) : die ( 'Could not find toolchain packages directory' ) breakpad_version = os . environ . get ( 'IMPALA_BREAKPAD_VERSION' ) if not breakpad_version : die ( 'Could not determine breakpad version from toolchain' ) breakpad_dir = 'breakpad-%s' % breakpad_version dump_syms = os . path . join ( toolchain_packages_home , breakpad_dir , 'bin' , 'dump_syms' ) if not os . path . isfile ( dump_syms ) : die ( 'Could not find dump_syms executable at %s' % dump_syms ) return dump_syms return ''