wow yoo wow yoo - 1 year ago 94
Python Question

Where does 'sys.exec_prefix' point to?

I've heard two descriptions.One said it points to location of compiled binaries, another believed sys.exec_prefix is the equivalent of sys.prefix, but for platform-specific files, which is correct?

Answer Source

According to python-3 documentation:


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/pythonX.Y/config, and shared library modules are installed in exec_prefix/lib/pythonX.Y/lib-dynload, where X.Y is the version number of Python, for example 3.2.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download