MCPcopy Create free account
hub / github.com/Tencent/PhoenixGo / get_python_major_version

Function get_python_major_version

configure.py:173–175  ·  view source on GitHub ↗

Get the python major version.

(python_bin_path)

Source from the content-addressed store, hash-verified

171
172
173def get_python_major_version(python_bin_path):
174 """Get the python major version."""
175 return run_shell([python_bin_path, '-c', 'import sys; print(sys.version[0])'])
176
177
178def setup_python(environ_cp):

Callers 1

setup_pythonFunction · 0.85

Calls 1

run_shellFunction · 0.85

Tested by

no test coverage detected