PyDocs

Nav

Python Runtime Services

get_config_vars

sysconfig

function (source)
  • get_config_vars(*args)
With no arguments, return a dictionary of all configuration
variables relevant for the current platform.

On Unix, this means every variable defined in Python's installed Makefile;
On Windows it's a much smaller set.

With arguments, return a list of values that result from looking up
each argument in the configuration variable dictionary.
1 Example
>>> import sysconfig
>>> sysconfig.get_config_var('Py_ENABLE_SHARED')
0
>>> sysconfig.get_config_var('LIBDIR')
'/usr/local/lib'
>>> sysconfig.get_config_vars('AR', 'CXX')
['ar', 'g++']
from the Python docs
See Also
No see-alsos for sysconfig/get_config_vars
0 Notes
No notes for get_config_vars