in scripts/elf_rockylinux_dependency_analyzer.py [0:0]
def find_library_in_ld_library_path(lib_name):
ld_library_path = os.environ.get('LD_LIBRARY_PATH', '')
for directory in ld_library_path.split(':'):
potential_path = os.path.join(directory, lib_name)
if os.path.isfile(potential_path):
return potential_path
return None