gak / pycallgraph

pycallgraph is a Python module that creates call graphs for Python programs.
GNU General Public License v2.0
1.82k stars 336 forks source link

test_no_stdlib and underlying functionality incorrect for distros #193

Open jayvdb opened 5 years ago

jayvdb commented 5 years ago

Config.init_libpath only looks at sysconfig.get_python_lib() (usually /usr/lib/), and doesnt include sysconfig.get_python_lib(plat_specific=True) , which is usually /usr/lib64. The later is where re.match will come from for most distro users. Both directories need to be used to determine if a module is part of the stdlib.