MCPcopy Index your code
hub / github.com/python/cpython / _main

Function _main

Lib/sysconfig/__main__.py:232–243  ·  view source on GitHub ↗

Display all information sysconfig detains.

()

Source from the content-addressed store, hash-verified

230
231
232def _main():
233 """Display all information sysconfig detains."""
234 if '--generate-posix-vars' in sys.argv:
235 _generate_posix_vars()
236 return
237 print(f'Platform: "{get_platform()}"')
238 print(f'Python version: "{get_python_version()}"')
239 print(f'Current installation scheme: "{get_default_scheme()}"')
240 print()
241 _print_dict('Paths', get_paths())
242 print()
243 _print_dict('Variables', get_config_vars())
244
245
246if __name__ == '__main__':

Callers 2

test_mainMethod · 0.90
__main__.pyFile · 0.70

Calls 7

get_platformFunction · 0.90
get_python_versionFunction · 0.90
get_default_schemeFunction · 0.90
get_pathsFunction · 0.90
get_config_varsFunction · 0.90
_generate_posix_varsFunction · 0.85
_print_dictFunction · 0.85

Tested by 1

test_mainMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…