MCPcopy Index your code
hub / github.com/RustPython/RustPython / _main

Function _main

Lib/sysconfig/__main__.py:258–269  ·  view source on GitHub ↗

Display all information sysconfig detains.

()

Source from the content-addressed store, hash-verified

256
257
258def _main():
259 """Display all information sysconfig detains."""
260 if '--generate-posix-vars' in sys.argv:
261 _generate_posix_vars()
262 return
263 print(f'Platform: "{get_platform()}"')
264 print(f'Python version: "{get_python_version()}"')
265 print(f'Current installation scheme: "{get_default_scheme()}"')
266 print()
267 _print_dict('Paths', get_paths())
268 print()
269 _print_dict('Variables', get_config_vars())
270
271
272if __name__ == '__main__':

Callers 2

test_mainMethod · 0.90
__main__.pyFile · 0.70

Calls 8

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
printFunction · 0.50

Tested by 1

test_mainMethod · 0.72