我们从Python开源项目中,提取了以下5个代码示例,用于说明如何使用symbol.TranslateLibPath()。
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)
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)