"""
extract - A set of function that extract symbol lists from shared libraries.
"""
-import distutils.spawn
import os.path
from os import environ
import re
+import shutil
import subprocess
import sys
"""
Search for the nm executable and return the path.
"""
- return distutils.spawn.find_executable('nm')
+ return shutil.which('nm')
def __init__(self, static_lib):
"""
"""
Search for the readelf executable and return the path.
"""
- return distutils.spawn.find_executable('readelf')
+ return shutil.which('readelf')
def __init__(self, static_lib):
"""
"""
Search for the dump executable and return the path.
"""
- return distutils.spawn.find_executable('dump')
+ return shutil.which('dump')
def __init__(self, static_lib):
"""
from pprint import pformat
import ast
-import distutils.spawn
import re
+import shutil
import subprocess
import sys
f.write(out_str)
-_cppfilt_exe = distutils.spawn.find_executable('c++filt')
+_cppfilt_exe = shutil.which('c++filt')
def demangle_symbol(symbol):