Python symbol 模块,TranslateLibPath() 实例源码

我们从Python开源项目中,提取了以下5个代码示例,用于说明如何使用symbol.TranslateLibPath()

项目:nojs    作者:chrisdickinson    | 项目源码 | 文件源码
def _TranslateLibPath(library, asan_libs):
  for asan_lib in asan_libs:
    if os.path.basename(library) == os.path.basename(asan_lib):
      return '/' + asan_lib
  # pylint: disable=no-member
  return symbol.TranslateLibPath(library)
项目:chromium-build    作者:discordapp    | 项目源码 | 文件源码
def _TranslateLibPath(library, asan_libs):
  for asan_lib in asan_libs:
    if os.path.basename(library) == os.path.basename(asan_lib):
      return '/' + asan_lib
  # pylint: disable=no-member
  return symbol.TranslateLibPath(library)
项目:gn_build    作者:realcome    | 项目源码 | 文件源码
def _TranslateLibPath(library, asan_libs):
  for asan_lib in asan_libs:
    if os.path.basename(library) == os.path.basename(asan_lib):
      return '/' + asan_lib
  # pylint: disable=no-member
  return symbol.TranslateLibPath(library)
项目:buildroot    作者:flutter    | 项目源码 | 文件源码
def _TranslateLibPath(library, asan_libs):
  for asan_lib in asan_libs:
    if os.path.basename(library) == os.path.basename(asan_lib):
      return '/' + asan_lib
  return symbol.TranslateLibPath(library)
项目:nodenative    作者:nodenative    | 项目源码 | 文件源码
def _TranslateLibPath(library, asan_libs):
  for asan_lib in asan_libs:
    if os.path.basename(library) == os.path.basename(asan_lib):
      return '/' + asan_lib
  # pylint: disable=no-member
  return symbol.TranslateLibPath(library)