sys.exec_prefix
exec_prefix
A string giving the site-specific directory prefix where the
platform-dependent Python files are installed; by default, this is
also '/usr/local'. This can be set at build time with the
—exec-prefix argument to the configure script. Specifically,
all configuration files (e.g. the pyconfig.h header file) are
installed in the directory `exec_prefix +
‘/lib/pythonversion/config’`, and shared library modules are installed
in exec_prefix + '/lib/pythonversion/lib-dynload', where version is
equal to version[:3].