MCPcopy Create free account
hub / github.com/StackStorm/st2 / get_python_version

Function get_python_version

st2common/st2common/util/versioning.py:43–48  ·  view source on GitHub ↗

Return Python version used by this installation.

()

Source from the content-addressed store, hash-verified

41
42
43def get_python_version():
44 """
45 Return Python version used by this installation.
46 """
47 version_info = sys.version_info
48 return "%s.%s.%s" % (version_info.major, version_info.minor, version_info.micro)
49
50
51def complex_semver_match(version, version_specifier):

Callers 1

pack_management.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected