in scripts/elf_rockylinux_dependency_analyzer.py [0:0]
3 lines of code
3 McCabe index (conditional complexity)
def is_elf_binary(file_path):
file_output = run_command(['file', file_path])
return 'ELF' in file_output and ('executable' in file_output or 'shared object' in file_output)